Update lib.rs
This commit is contained in:
parent
7dfe24da26
commit
3416153081
1 changed files with 1 additions and 1 deletions
|
@ -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<Vec<String>> {
|
||||
if !format.contains("{}") {
|
||||
|
|
Loading…
Add table
Reference in a new issue