Skip to content

Commit 73ed5e7

Browse files
authored
Merge pull request #167 from jelmer/typo
Fix typo in docstring: two => to
2 parents e2d2e93 + a87bcd2 commit 73ed5e7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/api.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

264265
impl<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
}

0 commit comments

Comments
 (0)