diff --git a/Cargo.toml b/Cargo.toml index 727f414..7435a90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "zips" description = "Macros for wrapping up a bunch of Option's/Result's into a single Option<(T [, T...])>" -version = "0.1.6" +version = "0.1.7" edition = "2021" authors = ["Carter Canedy "] repository = "https://github.com/cartercanedy/zips" diff --git a/README.md b/README.md index 06c8e72..cd66299 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ $> cargo add zips ### With `Option`: ```rust -use zips::{zip, zip_result}; +use zips::zip; fn main() -> () { let i: Option = Some(0); @@ -26,10 +26,14 @@ fn main() -> () { // zipped_none: Option<((i32, usize), ())> let zipped_none = zip!(zipped_some, k); assert_eq!(zipped_none, None); +} ``` ### With `Result`: ```rust +use zips::zip_result; + +fn main() -> () { let m: Result = Ok(1); let n: Result = Ok(0usize); let o: Result<(), &'static str> = Err("I'm an error!");