Skip to content

Commit

Permalink
Update docs for fn reset
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimsag committed Apr 28, 2024
1 parent 3a357ef commit a1b371c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/binding_rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,8 @@ impl<'cursor> TreeCursor<'cursor> {
(result >= 0).then_some(result as usize)
}

/// Re-initialize this tree cursor to start at a different node.
/// Re-initialize this tree cursor to start at the original node that the
/// cursor was constructed with.
#[doc(alias = "ts_tree_cursor_reset")]
pub fn reset(&mut self, node: Node<'cursor>) {
unsafe { ffi::ts_tree_cursor_reset(&mut self.0, node.0) };
Expand Down

0 comments on commit a1b371c

Please sign in to comment.