Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
docs: made minor changes to grammar
MikeWallaceDev7436f7de3ea7
diff --git a/shared-lib/lib-ot/src/core/delta/builder.rs b/shared-lib/lib-ot/src/core/delta/builder.rsindex 9e67495da0..44e4d4dbac 100644--- a/shared-lib/lib-ot/src/core/delta/builder.rs+++ b/shared-lib/lib-ot/src/core/delta/builder.rs@@ -46,7 +46,7 @@ whereself}- /// 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);diff --git a/shared-lib/lib-ot/src/core/delta/cursor.rs b/shared-lib/lib-ot/src/core/delta/cursor.rsindex a465d62dea..2243adb7b3 100644--- a/shared-lib/lib-ot/src/core/delta/cursor.rs+++ b/shared-lib/lib-ot/src/core/delta/cursor.rs@@ -53,17 +53,17 @@ wherecursor}- /// Return the next operation interval+ /// Returns the next operation intervalpub 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 operationpub 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 operationpub 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 @@ whereself.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.////// # Argumentsdiff --git a/shared-lib/lib-ot/src/core/operation/operation.rs b/shared-lib/lib-ot/src/core/operation/operation.rsindex ac56025621..26ac7650ec 100644--- a/shared-lib/lib-ot/src/core/operation/operation.rs+++ b/shared-lib/lib-ot/src/core/operation/operation.rs@@ -41,7 +41,7 @@ pub trait OperationTransformable {whereSelf: 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///