style: rephrase extends beyond to contains or starts after
This commit is contained in:
parent
d2db7eb8ef
commit
5d99014bb8
4 changed files with 14 additions and 14 deletions
|
|
@ -1909,14 +1909,14 @@ impl<'tree> Node<'tree> {
|
|||
Self::new(unsafe { ffi::ts_node_prev_named_sibling(self.0) })
|
||||
}
|
||||
|
||||
/// Get the node's first child that extends beyond the given byte offset.
|
||||
/// Get the node's first child that contains or starts after the given byte offset.
|
||||
#[doc(alias = "ts_node_first_child_for_byte")]
|
||||
#[must_use]
|
||||
pub fn first_child_for_byte(&self, byte: usize) -> Option<Self> {
|
||||
Self::new(unsafe { ffi::ts_node_first_child_for_byte(self.0, byte as u32) })
|
||||
}
|
||||
|
||||
/// Get the node's first named child that extends beyond the given byte offset.
|
||||
/// Get the node's first named child that contains or starts after the given byte offset.
|
||||
#[doc(alias = "ts_node_first_named_child_for_point")]
|
||||
#[must_use]
|
||||
pub fn first_named_child_for_byte(&self, byte: usize) -> Option<Self> {
|
||||
|
|
@ -2162,8 +2162,8 @@ impl<'cursor> TreeCursor<'cursor> {
|
|||
unsafe { ffi::ts_tree_cursor_goto_previous_sibling(&mut self.0) }
|
||||
}
|
||||
|
||||
/// Move this cursor to the first child of its current node that extends
|
||||
/// beyond the given byte offset.
|
||||
/// Move this cursor to the first child of its current node that contains or
|
||||
/// starts after the given byte offset.
|
||||
///
|
||||
/// This returns the index of the child node if one was found, and returns
|
||||
/// `None` if no such child was found.
|
||||
|
|
@ -2174,8 +2174,8 @@ impl<'cursor> TreeCursor<'cursor> {
|
|||
(result >= 0).then_some(result as usize)
|
||||
}
|
||||
|
||||
/// Move this cursor to the first child of its current node that extends
|
||||
/// beyond the given byte offset.
|
||||
/// Move this cursor to the first child of its current node that contains or
|
||||
/// starts after the given byte offset.
|
||||
///
|
||||
/// This returns the index of the child node if one was found, and returns
|
||||
/// `None` if no such child was found.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue