aboutsummaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2021-01-15 17:03:38 +0100
committerQuentin <quentin@deuxfleurs.fr>2021-01-15 17:03:38 +0100
commit1e10c6a61cf59c11d72e941c5a6d4ea6e159b8ce (patch)
tree8ab8d6bc3441f2f3da69cc5c04d655b673790a8d /src/table
parent11a79a95dd9b2f2e0dd2d9dc999abd24f4ee232b (diff)
downloadgarage-1e10c6a61cf59c11d72e941c5a6d4ea6e159b8ce.tar.gz
garage-1e10c6a61cf59c11d72e941c5a6d4ea6e159b8ce.zip
Doc tests that do not compile/work must be tagged with ignore
Diffstat (limited to 'src/table')
-rw-r--r--src/table/crdt.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/table/crdt.rs b/src/table/crdt.rs
index 386e478b..4cba10ce 100644
--- a/src/table/crdt.rs
+++ b/src/table/crdt.rs
@@ -239,7 +239,7 @@ where
///
/// Typically, to update the value associated to a key in the map, you would do the following:
///
- /// ```
+ /// ```ignore
/// let my_update = my_crdt.update_mutator(key_to_modify, new_value);
/// my_crdt.merge(&my_update);
/// ```
@@ -261,7 +261,7 @@ where
/// empty map. This is very usefull to produce in-place a new map that contains only a delta
/// that modifies a certain value:
///
- /// ```
+ /// ```ignore
/// let mut a = get_my_crdt_value();
/// let old_a = a.take_and_clear();
/// a.merge(&old_a.update_mutator(key_to_modify, new_value));
@@ -273,7 +273,7 @@ where
/// but in the case where the map is a field in a struct for instance (as is always the case),
/// this becomes very handy:
///
- /// ```
+ /// ```ignore
/// let mut a = get_my_crdt_value();
/// let old_a_map = a.map_field.take_and_clear();
/// a.map_field.merge(&old_a_map.update_mutator(key_to_modify, new_value));