aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/completion/src/lib.rs')
-rw-r--r--crates/completion/src/lib.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/completion/src/lib.rs b/crates/completion/src/lib.rs
index 3c7d5a46c..6cba88a6b 100644
--- a/crates/completion/src/lib.rs
+++ b/crates/completion/src/lib.rs
@@ -47,8 +47,8 @@ pub use crate::{
47// - `expr.while` -> `while expr {}` or `while let ... {}` for `Option` or `Result` 47// - `expr.while` -> `while expr {}` or `while let ... {}` for `Option` or `Result`
48// - `expr.ref` -> `&expr` 48// - `expr.ref` -> `&expr`
49// - `expr.refm` -> `&mut expr` 49// - `expr.refm` -> `&mut expr`
50// - `expr.let` -> `let <|> = expr;` 50// - `expr.let` -> `let $0 = expr;`
51// - `expr.letm` -> `let mut <|> = expr;` 51// - `expr.letm` -> `let mut $0 = expr;`
52// - `expr.not` -> `!expr` 52// - `expr.not` -> `!expr`
53// - `expr.dbg` -> `dbg!(expr)` 53// - `expr.dbg` -> `dbg!(expr)`
54// - `expr.dbgr` -> `dbg!(&expr)` 54// - `expr.dbgr` -> `dbg!(&expr)`
@@ -92,7 +92,7 @@ pub use crate::{
92/// ```no_run 92/// ```no_run
93/// fn f() { 93/// fn f() {
94/// let foo = 92; 94/// let foo = 92;
95/// let _ = bar<|> 95/// let _ = bar$0
96/// } 96/// }
97/// ``` 97/// ```
98/// 98///
@@ -220,7 +220,7 @@ mod tests {
220 220
221 fn foo() { 221 fn foo() {
222 let bar = Bar; 222 let bar = Bar;
223 bar.fo<|>; 223 bar.fo$0;
224 } 224 }
225 "#, 225 "#,
226 DetailAndDocumentation { detail: "fn foo(&self)", documentation: "Do the foo" }, 226 DetailAndDocumentation { detail: "fn foo(&self)", documentation: "Do the foo" },
@@ -246,7 +246,7 @@ mod tests {
246 246
247 fn foo() { 247 fn foo() {
248 let bar = Bar; 248 let bar = Bar;
249 bar.fo<|>; 249 bar.fo$0;
250 } 250 }
251 "#, 251 "#,
252 DetailAndDocumentation { detail: "fn foo(&self)", documentation: " Do the foo" }, 252 DetailAndDocumentation { detail: "fn foo(&self)", documentation: " Do the foo" },
@@ -259,7 +259,7 @@ mod tests {
259 check_no_completion( 259 check_no_completion(
260 r#" 260 r#"
261 fn foo() { 261 fn foo() {
262 for i i<|> 262 for i i$0
263 } 263 }
264 "#, 264 "#,
265 ); 265 );
@@ -270,7 +270,7 @@ mod tests {
270 fn foo() -> &'static str { "foo" } 270 fn foo() -> &'static str { "foo" }
271 271
272 fn bar() { 272 fn bar() {
273 for c in fo<|> 273 for c in fo$0
274 } 274 }
275 "#, 275 "#,
276 DetailAndDocumentation { 276 DetailAndDocumentation {