File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,10 @@ impl<L: Language> SyntaxNode<L> {
101101 pub fn new_root_mut ( green : GreenNode ) -> SyntaxNode < L > {
102102 SyntaxNode :: from ( cursor:: SyntaxNode :: new_root_mut ( green) )
103103 }
104+
104105 /// Returns a green tree, equal to the green tree this node
105- /// belongs two , except with this node substitute . The complexity
106- /// of operation is proportional to the depth of the tree
106+ /// belongs to , except with this node substituted . The complexity
107+ /// of the operation is proportional to the depth of the tree.
107108 pub fn replace_with ( & self , replacement : GreenNode ) -> GreenNode {
108109 self . raw . replace_with ( replacement)
109110 }
@@ -263,8 +264,8 @@ impl<L: Language> SyntaxNode<L> {
263264
264265impl < L : Language > SyntaxToken < L > {
265266 /// Returns a green tree, equal to the green tree this token
266- /// belongs two , except with this token substitute . The complexity
267- /// of operation is proportional to the depth of the tree
267+ /// belongs to , except with this token substituted . The complexity
268+ /// of the operation is proportional to the depth of the tree.
268269 pub fn replace_with ( & self , new_token : GreenToken ) -> GreenNode {
269270 self . raw . replace_with ( new_token)
270271 }
You can’t perform that action at this time.
0 commit comments