diff options
author | Aleksey Kladov <[email protected]> | 2018-07-30 10:52:59 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-30 10:52:59 +0100 |
commit | 9a4957d143397256dc04f715660f758a65fcb9d1 (patch) | |
tree | 4e4cc039c962aea8f1ffe3275f2cb24e667afbf5 /src | |
parent | 97bb2232797e464290d09f23fadae97db1043e34 (diff) |
clean comments
Diffstat (limited to 'src')
-rw-r--r-- | src/yellow/syntax.rs | 3 |
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)] |
19 | pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> { | 19 | pub 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 | ||