Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/syntax/tree_cursor.rs')
-rw-r--r--helix-core/src/syntax/tree_cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/syntax/tree_cursor.rs b/helix-core/src/syntax/tree_cursor.rs
index bec4a1c6..d82ea74d 100644
--- a/helix-core/src/syntax/tree_cursor.rs
+++ b/helix-core/src/syntax/tree_cursor.rs
@@ -217,7 +217,7 @@ impl<'a> TreeCursor<'a> {
/// Returns an iterator over the children of the node the TreeCursor is on
/// at the time this is called.
- pub fn children(&'a mut self) -> ChildIter {
+ pub fn children(&'a mut self) -> ChildIter<'a> {
let parent = self.node();
ChildIter {
@@ -229,7 +229,7 @@ impl<'a> TreeCursor<'a> {
/// Returns an iterator over the named children of the node the TreeCursor is on
/// at the time this is called.
- pub fn named_children(&'a mut self) -> ChildIter {
+ pub fn named_children(&'a mut self) -> ChildIter<'a> {
let parent = self.node();
ChildIter {