mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
rewording and typo fix
Co-Authored-By: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
parent
8ebd50fb99
commit
28367f7e4f
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ Stop `cargo watch`.
|
|||
#### Structural Seach and Replace
|
||||
|
||||
Search and replace with named wildcards that will match any expression.
|
||||
The syntax for a structural search replace command is `<search_pattern> ==>> <replace_pattern>` where `$<name>:expr` in the search pattern will match any expression and `$<name>` will fill the matching expression in the replace pattern. Available via the command `rust-analyer.ssr`.
|
||||
The syntax for a structural search replace command is `<search_pattern> ==>> <replace_pattern>`. A `$<name>:expr` placeholder in the search pattern will match any expression and `$<name>` will reference it in the replacement. Available via the command `rust-analyzer.ssr`.
|
||||
|
||||
```rust
|
||||
// Using structural search replace command [foo($a:expr, $b:expr) ==>> ($a).foo($b)]
|
||||
|
|
Loading…
Reference in a new issue