lib: ';' to ',' in enums in more places

This commit is contained in:
Patrick Walton 2012-01-19 19:08:08 -08:00
parent 2d2bdfe845
commit 6222e98dda
5 changed files with 12 additions and 12 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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>(

View File

@ -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 */