docs: made minor changes to grammar

This commit is contained in:
MikeWallaceDev 2022-07-25 18:34:26 -04:00
parent a76dd40b3b
commit 7436f7de3e
3 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ where
self
}
/// Insert the string with attributes. Use 'insert' instead if you don't
/// Inserts the string with attributes. Use 'insert' instead if you don't
/// need any attributes.
pub fn insert_with_attributes(mut self, s: &str, attrs: T) -> Self {
self.delta.insert(s, attrs);

View File

@ -53,17 +53,17 @@ where
cursor
}
/// Return the next operation interval
/// Returns the next operation interval
pub fn next_iv(&self) -> Interval {
self.next_iv_with_len(None).unwrap_or_else(|| Interval::new(0, 0))
}
/// Return the next operation
/// Returns the next operation
pub fn get_next_op(&mut self) -> Option<Operation<T>> {
self.next_with_len(None)
}
/// Return the reference of the next operation
/// Returns the reference of the next operation
pub fn next_op(&self) -> Option<&Operation<T>> {
let mut next_op = self.next_op.as_ref();
if next_op.is_none() {
@ -138,8 +138,8 @@ where
self.next_op().is_some()
}
/// Find the op within the current offset.
/// This function sets the start of the consume_iv to the offset, update the consume_count
/// Finds the op within the current offset.
/// This function sets the start of the consume_iv to the offset, updates the consume_count
/// and the next_op reference.
///
/// # Arguments

View File

@ -41,7 +41,7 @@ pub trait OperationTransformable {
where
Self: Sized;
/// Return the invert delta from the other. It can be used to do the undo operation.
/// Returns the invert delta from the other. It can be used to do the undo operation.
///
/// # Arguments
///