aboutsummaryrefslogtreecommitdiff
path: root/src/table/crdt/map.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-03-26 19:41:46 +0100
committerAlex Auvolat <alex@adnab.me>2021-04-27 16:37:10 +0200
commitb4376108122bb09bd8cff562b718967d4332ffbe (patch)
tree120910caa43e400c0431463f47ed3fc114af77ea /src/table/crdt/map.rs
parentf8716895715b1a552750062aca9bc1882f6f95c0 (diff)
downloadgarage-b4376108122bb09bd8cff562b718967d4332ffbe.tar.gz
garage-b4376108122bb09bd8cff562b718967d4332ffbe.zip
attempt at documenting table crate
Diffstat (limited to 'src/table/crdt/map.rs')
-rw-r--r--src/table/crdt/map.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/table/crdt/map.rs b/src/table/crdt/map.rs
index 1193e6db..c4a30a26 100644
--- a/src/table/crdt/map.rs
+++ b/src/table/crdt/map.rs
@@ -37,6 +37,7 @@ where
Self { vals: vec![(k, v)] }
}
+ /// Add a value to the map
pub fn put(&mut self, k: K, v: V) {
self.merge(&Self::put_mutator(k, v));
}