diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 13:51:08 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 14:16:05 +0100 |
commit | 1142112c70b705f59b7d559d9d72cdc831865158 (patch) | |
tree | 1ca467302b268c800da8b26482e90effcea08229 /docs | |
parent | 3e1e6227ca525f8631e0bff2215fa3de1b4f4cc1 (diff) |
Rename FnDef -> Fn
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/syntax.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/dev/syntax.md b/docs/dev/syntax.md index c2864bbbc..d4bc4b07c 100644 --- a/docs/dev/syntax.md +++ b/docs/dev/syntax.md | |||
@@ -82,7 +82,7 @@ Points of note: | |||
82 | An input like `fn f() { 90 + 2 }` might be parsed as | 82 | An input like `fn f() { 90 + 2 }` might be parsed as |
83 | 83 | ||
84 | ``` | 84 | ``` |
85 | FN_DEF@0..17 | 85 | [email protected] |
86 | [email protected] "fn" | 86 | [email protected] "fn" |
87 | [email protected] " " | 87 | [email protected] " " |
88 | [email protected] | 88 | [email protected] |
@@ -342,7 +342,7 @@ pub struct FnDef { | |||
342 | impl AstNode for FnDef { | 342 | impl AstNode for FnDef { |
343 | fn cast(syntax: SyntaxNode) -> Option<Self> { | 343 | fn cast(syntax: SyntaxNode) -> Option<Self> { |
344 | match kind { | 344 | match kind { |
345 | FN_DEF => Some(FnDef { syntax }), | 345 | FN => Some(FnDef { syntax }), |
346 | _ => None, | 346 | _ => None, |
347 | } | 347 | } |
348 | } | 348 | } |