clean comments

This commit is contained in:
Aleksey Kladov 2018-07-30 12:52:59 +03:00
parent 97bb223279
commit 9a4957d143

View file

@ -18,7 +18,8 @@ impl<'a> TreeRoot for &'a SyntaxRoot {}
#[derive(Clone, Copy)]
pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> {
pub(crate) root: ROOT,
// guaranteed to be alive bc SyntaxRoot holds a strong ref
// Guaranteed to not dangle, because `root` holds a
// strong reference to red's ancestor
red: ptr::NonNull<RedNode>,
}