diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-01-19 17:55:34 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-01-19 18:04:24 -0800 |
| commit | 194d8e3bd55021a2f0e6d61c2bdc2c0b2017f58f (patch) | |
| tree | e76727dac06a0470097bcf532279dbae564037d8 /src/libstd/getopts.rs | |
| parent | 874390831a61d0708f227bfc5a78fd167ea6d9c1 (diff) | |
| download | rust-194d8e3bd55021a2f0e6d61c2bdc2c0b2017f58f.tar.gz rust-194d8e3bd55021a2f0e6d61c2bdc2c0b2017f58f.zip | |
lib: ";" to "," in enums
Diffstat (limited to 'src/libstd/getopts.rs')
| -rw-r--r-- | src/libstd/getopts.rs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs index 29df5770a17..6c21ec1330e 100644 --- a/src/libstd/getopts.rs +++ b/src/libstd/getopts.rs @@ -65,11 +65,11 @@ export opt_strs; export opt_maybe_str; export opt_default; -enum name { long(str); short(char); } +enum name { long(str), short(char), } -enum hasarg { yes; no; maybe; } +enum hasarg { yes, no, maybe, } -enum occur { req; optional; multi; } +enum occur { req, optional, multi, } /* Type: opt @@ -130,7 +130,7 @@ fn optmulti(name: str) -> opt { ret {name: mkname(name), hasarg: yes, occur: multi}; } -enum optval { val(str); given; } +enum optval { val(str), given, } /* Type: match @@ -159,11 +159,11 @@ The type returned when the command line does not conform to the expected format. Pass this value to <fail_str> to get an error message. */ enum fail_ { - argument_missing(str); - unrecognized_option(str); - option_missing(str); - option_duplicated(str); - unexpected_argument(str); + argument_missing(str), + unrecognized_option(str), + option_missing(str), + option_duplicated(str), + unexpected_argument(str), } /* @@ -382,11 +382,11 @@ mod tests { import result::{err, ok}; enum fail_type { - argument_missing_; - unrecognized_option_; - option_missing_; - option_duplicated_; - unexpected_argument_; + argument_missing_, + unrecognized_option_, + option_missing_, + option_duplicated_, + unexpected_argument_, } fn check_fail_type(f: fail_, ft: fail_type) { |
