lib: ';' to ',' in enums in more places
This commit is contained in:
parent
2d2bdfe845
commit
6222e98dda
|
@ -12,9 +12,9 @@ The either type
|
|||
*/
|
||||
enum t<T, U> {
|
||||
/* Variant: left */
|
||||
left(T);
|
||||
left(T),
|
||||
/* Variant: right */
|
||||
right(U);
|
||||
right(U),
|
||||
}
|
||||
|
||||
/* Section: Operations */
|
||||
|
|
|
@ -17,13 +17,13 @@ enum t<T, U> {
|
|||
|
||||
Contains the result value
|
||||
*/
|
||||
ok(T);
|
||||
ok(T),
|
||||
/*
|
||||
Variant: err
|
||||
|
||||
Contains the error value
|
||||
*/
|
||||
err(U);
|
||||
err(U),
|
||||
}
|
||||
|
||||
/* Section: Operations */
|
||||
|
|
|
@ -32,8 +32,8 @@ type treemap<K, V> = @tree_node<K, V>;
|
|||
Tag: tree_node
|
||||
*/
|
||||
enum tree_node<K, V> {
|
||||
empty;
|
||||
node(@K, @V, @tree_node<K, V>, @tree_node<K, V>);
|
||||
empty,
|
||||
node(@K, @V, @tree_node<K, V>, @tree_node<K, V>),
|
||||
}
|
||||
|
||||
/* Section: Operations */
|
||||
|
|
|
@ -113,8 +113,8 @@ mod chained {
|
|||
};
|
||||
|
||||
enum chain<K, V> {
|
||||
present(@entry<K, V>);
|
||||
absent;
|
||||
present(@entry<K, V>),
|
||||
absent,
|
||||
}
|
||||
|
||||
type t<K, V> = {
|
||||
|
@ -125,9 +125,9 @@ mod chained {
|
|||
};
|
||||
|
||||
enum search_result<K, V> {
|
||||
not_found;
|
||||
found_first(uint, @entry<K,V>);
|
||||
found_after(@entry<K,V>, @entry<K,V>);
|
||||
not_found,
|
||||
found_first(uint, @entry<K,V>),
|
||||
found_after(@entry<K,V>, @entry<K,V>),
|
||||
}
|
||||
|
||||
fn search_rem<K: copy, V: copy>(
|
||||
|
|
|
@ -28,7 +28,7 @@ type treemap<K, V> = @mutable tree_node<K, V>;
|
|||
/*
|
||||
Tag: tree_node
|
||||
*/
|
||||
enum tree_node<K, V> { empty; node(@K, @V, treemap<K, V>, treemap<K, V>); }
|
||||
enum tree_node<K, V> { empty, node(@K, @V, treemap<K, V>, treemap<K, V>), }
|
||||
|
||||
/* Section: Operations */
|
||||
|
||||
|
|
Loading…
Reference in New Issue