fix doc example test.
This commit is contained in:
parent
50eb8d5a6c
commit
b5aec7825c
|
@ -71,7 +71,7 @@ impl Command for Find {
|
||||||
Example {
|
Example {
|
||||||
description: "Search and highlight text for a term in a string. Note that regular search is case insensitive",
|
description: "Search and highlight text for a term in a string. Note that regular search is case insensitive",
|
||||||
example: r#"'Cargo.toml' | find cargo"#,
|
example: r#"'Cargo.toml' | find cargo"#,
|
||||||
result: Some(Value::test_string("\u{1b}[37mCargo.\u{1b}[0m\u{1b}[41;37mtoml\u{1b}[0m\u{1b}[37m\u{1b}[0m".to_owned())),
|
result: Some(Value::test_string("\u{1b}[37m\u{1b}[0m\u{1b}[41;37mCargo\u{1b}[0m\u{1b}[37m.toml\u{1b}[0m".to_owned())),
|
||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Search a number or a file size in a list of numbers",
|
description: "Search a number or a file size in a list of numbers",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user