aboutsummaryrefslogtreecommitdiff
path: root/src/util/crdt/lww_map.rs
diff options
context:
space:
mode:
authormaximilien <me@mricher.fr>2025-01-17 06:06:14 +0000
committermaximilien <me@mricher.fr>2025-01-17 06:06:14 +0000
commit294cb9940943d7febc1029ed44145daf57f914d0 (patch)
treebe9b2912ae92b07ef5e7905372b1bc2a542234c6 /src/util/crdt/lww_map.rs
parent255b01b626096ef98cf24c9552b39c0372fb4eb3 (diff)
parent2eb9fcae20cb7e41b1197f4565db492a97f95736 (diff)
downloadgarage-294cb9940943d7febc1029ed44145daf57f914d0.tar.gz
garage-294cb9940943d7febc1029ed44145daf57f914d0.zip
Merge pull request 'Fix all typos' (#928) from majst01/garage:fix-typos into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/928 Reviewed-by: maximilien <me@mricher.fr>
Diffstat (limited to 'src/util/crdt/lww_map.rs')
-rw-r--r--src/util/crdt/lww_map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crdt/lww_map.rs b/src/util/crdt/lww_map.rs
index 88113856..def0ebeb 100644
--- a/src/util/crdt/lww_map.rs
+++ b/src/util/crdt/lww_map.rs
@@ -109,7 +109,7 @@ where
}
/// Takes all of the values of the map and returns them. The current map is reset to the
- /// empty map. This is very usefull to produce in-place a new map that contains only a delta
+ /// empty map. This is very useful to produce in-place a new map that contains only a delta
/// that modifies a certain value:
///
/// ```ignore
@@ -162,7 +162,7 @@ where
}
}
- /// Gets a reference to all of the items, as a slice. Usefull to iterate on all map values.
+ /// Gets a reference to all of the items, as a slice. Useful to iterate on all map values.
/// In most case you will want to ignore the timestamp (second item of the tuple).
pub fn items(&self) -> &[(K, u64, V)] {
&self.vals[..]