aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-07-19 19:41:36 +0100
committerAleksey Kladov <[email protected]>2019-07-19 19:41:36 +0100
commitd92a88bf09e89575710915eeec1541bea8df4e88 (patch)
tree7546061affcf551243a810c2f81a9918a8441515 /crates/ra_syntax/src/lib.rs
parent002529937075bd69d7f71483d798d6e4f43d1de9 (diff)
remove lifetime from syntax node text
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r--crates/ra_syntax/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs
index 2dca4e3e8..604abe5c6 100644
--- a/crates/ra_syntax/src/lib.rs
+++ b/crates/ra_syntax/src/lib.rs
@@ -238,7 +238,7 @@ fn api_walkthrough() {
238 238
239 // You can get node's text as a `SyntaxText` object, which will traverse the 239 // You can get node's text as a `SyntaxText` object, which will traverse the
240 // tree collecting token's text: 240 // tree collecting token's text:
241 let text: SyntaxText<'_> = expr_syntax.text(); 241 let text: SyntaxText = expr_syntax.text();
242 assert_eq!(text.to_string(), "1 + 1"); 242 assert_eq!(text.to_string(), "1 + 1");
243 243
244 // There's a bunch of traversal methods on `SyntaxNode`: 244 // There's a bunch of traversal methods on `SyntaxNode`: