From 7c6c812a74534173fc7070e3534e612a6219034a Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Tue, 17 Nov 2020 15:16:52 +0100 Subject: fix typos in syntax.md --- docs/dev/syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/dev/syntax.md') diff --git a/docs/dev/syntax.md b/docs/dev/syntax.md index 2eb08b7ca..1edafab68 100644 --- a/docs/dev/syntax.md +++ b/docs/dev/syntax.md @@ -195,7 +195,7 @@ Modeling this with immutable trees is possible, but annoying. A function green tree is not super-convenient to use. The biggest problem is accessing parents (there are no parent pointers!). But there are also "identify" issues. -Let's say you want to write a code which builds a list of expressions in a file: `fn collect_exrepssions(file: GreenNode) -> HashSet`. +Let's say you want to write a code which builds a list of expressions in a file: `fn collect_expressions(file: GreenNode) -> HashSet`. For the input like ```rust @@ -236,7 +236,7 @@ impl SyntaxNode { self.parent.clone() } fn children(&self) -> impl Iterator { - let mut offset = self.offset + let mut offset = self.offset; self.green.children().map(|green_child| { let child_offset = offset; offset += green_child.text_len; -- cgit v1.2.3