diff --git a/src/lib.rs b/src/lib.rs index 42a599f..835d5f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ /// /// Examples: /// - `readf("Hello, {}!", "Hello, world!")` => `Some(vec!["world"])` -/// - `readf("I hope {} are {}!", "I hope you are doing well!")` => `Some(vec!["you", "well"])` +/// - `readf("I hope {} are doing {}!", "I hope you are doing well!")` => `Some(vec!["you", "well"])` /// - `readf("Goodbye, {}!", "Hello, world!")` => `None` pub fn readf(format: &str, mut s: &str) -> Option> { if !format.contains("{}") {