aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-30 10:52:59 +0100
committerAleksey Kladov <[email protected]>2018-07-30 10:52:59 +0100
commit9a4957d143397256dc04f715660f758a65fcb9d1 (patch)
tree4e4cc039c962aea8f1ffe3275f2cb24e667afbf5
parent97bb2232797e464290d09f23fadae97db1043e34 (diff)
clean comments
-rw-r--r--src/yellow/syntax.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yellow/syntax.rs b/src/yellow/syntax.rs
index ae3302ed9..64af08236 100644
--- a/src/yellow/syntax.rs
+++ b/src/yellow/syntax.rs
@@ -18,7 +18,8 @@ impl<'a> TreeRoot for &'a SyntaxRoot {}
18#[derive(Clone, Copy)] 18#[derive(Clone, Copy)]
19pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> { 19pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> {
20 pub(crate) root: ROOT, 20 pub(crate) root: ROOT,
21 // guaranteed to be alive bc SyntaxRoot holds a strong ref 21 // Guaranteed to not dangle, because `root` holds a
22 // strong reference to red's ancestor
22 red: ptr::NonNull<RedNode>, 23 red: ptr::NonNull<RedNode>,
23} 24}
24 25