From 3416153081ca40a7d50756a0c7725aec2da59722 Mon Sep 17 00:00:00 2001 From: Daniel H Date: Mon, 30 Jan 2023 02:12:26 +0100 Subject: [PATCH] Update lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("{}") {