aboutsummaryrefslogtreecommitdiff
path: root/libeditor/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-09 15:44:40 +0100
committerAleksey Kladov <[email protected]>2018-08-09 15:54:49 +0100
commitafa94d4f37b9a0a1e723edffcc79c3d48799bad1 (patch)
treeea4a5163bee5f202c3627b88280e74a704c186d0 /libeditor/src
parentd8b2a5efc0e5de3b0d72f29ccc86185f0827c9d3 (diff)
fn_item -> function
Diffstat (limited to 'libeditor/src')
-rw-r--r--libeditor/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libeditor/src/lib.rs b/libeditor/src/lib.rs
index e7cc6a696..ebc063ed2 100644
--- a/libeditor/src/lib.rs
+++ b/libeditor/src/lib.rs
@@ -120,7 +120,7 @@ struct Declaration<'f>(SyntaxNodeRef<'f>);
120impl<'f> Declaration<'f> { 120impl<'f> Declaration<'f> {
121 fn cast(node: SyntaxNodeRef<'f>) -> Option<Declaration<'f>> { 121 fn cast(node: SyntaxNodeRef<'f>) -> Option<Declaration<'f>> {
122 match node.kind() { 122 match node.kind() {
123 | STRUCT_ITEM | ENUM_ITEM | FN_ITEM | TRAIT_ITEM 123 | STRUCT_ITEM | ENUM_ITEM | FUNCTION | TRAIT_ITEM
124 | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD 124 | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD
125 | TYPE_ITEM => Some(Declaration(node)), 125 | TYPE_ITEM => Some(Declaration(node)),
126 _ => None 126 _ => None