We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program prints
hello world
Ok(Some([104, 101, 108, 108, 111])) Ok(Some([119, 111, 114, 108, 100]))
extern crate hypercore; use hypercore::Feed; use std::path::PathBuf; let path = PathBuf::from("./my-first-dataset"); let mut feed = Feed::new(&path).unwrap(); feed.append(b"hello").unwrap(); feed.append(b"world").unwrap(); println!("{:?}", feed.get(0)); // prints "hello" println!("{:?}", feed.get(1)); // prints "world"
The text was updated successfully, but these errors were encountered:
Oh yeah, it should be an assertion instead:
assert_eq!(feed.get(0)?, Some(b"hello")); assert_eq!(feed.get(1)?, Some(b"world"));
Sorry, something went wrong.
No branches or pull requests
Bug Report
Your Environment
Expected Behavior
Program prints
Current Behavior
Program prints
Code Sample
The text was updated successfully, but these errors were encountered: