]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide_ssr/src/lib.rs
Merge #7961
[rust.git] / crates / ide_ssr / src / lib.rs
index e72c611a3e20c7a819c6e8a6be3eae3bf2d05e7c..00585f448c8211b5d89d71d1101af07167e87e35 100644 (file)
 //
 // | VS Code | **Rust Analyzer: Structural Search Replace**
 // |===
+//
+// Also available as an assist, by writing a comment containing the structural
+// search and replace rule. You will only see the assist if the comment can
+// be parsed as a valid structural search and replace rule.
+//
+// ```rust
+// // Place the cursor on the line below to see the assist ðŸ’¡.
+// // foo($a, $b) ==>> ($a).foo($b)
+// ```
 
 mod from_comment;
 mod matching;