aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdam Bratschi-Kaye <[email protected]>2020-02-22 17:07:43 +0000
committerGitHub <[email protected]>2020-02-22 17:07:43 +0000
commit28367f7e4fc0771c9ee2a01163db0f632ea6600b (patch)
tree990f9714d357e9d9f39a7252109e387002f75742 /docs
parent8ebd50fb9947f82b4af20ed97c7757b322d664e3 (diff)
rewording and typo fix
Co-Authored-By: LaurenČ›iu Nicola <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r--docs/user/features.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user/features.md b/docs/user/features.md
index 56a2f025c..48c63ba7b 100644
--- a/docs/user/features.md
+++ b/docs/user/features.md
@@ -108,7 +108,7 @@ Stop `cargo watch`.
108#### Structural Seach and Replace 108#### Structural Seach and Replace
109 109
110Search and replace with named wildcards that will match any expression. 110Search and replace with named wildcards that will match any expression.
111The 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`. 111The 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`.
112 112
113```rust 113```rust
114// Using structural search replace command [foo($a:expr, $b:expr) ==>> ($a).foo($b)] 114// Using structural search replace command [foo($a:expr, $b:expr) ==>> ($a).foo($b)]