Skip to content

Commit a52135f

Browse files
committed
Tidy
1 parent 34660f0 commit a52135f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libstd/getopts.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,17 @@ fn getopts(args: ~[str], opts: ~[opt]) -> result unsafe {
229229
/* In a series of potential options (eg. -aheJ), if we see
230230
one which takes an argument, we assume all subsequent
231231
characters make up the argument. This allows options
232-
such as -L/usr/local/lib/foo to be interpreted correctly
232+
such as -L/usr/local/lib/foo to be interpreted
233+
correctly
233234
*/
235+
234236
alt find_opt(opts, opt) {
235237
some(id) {
236238
last_valid_opt_id = option::some(id);
237239
}
238240
none {
239-
let arg_follows = option::is_some(last_valid_opt_id) &&
241+
let arg_follows =
242+
option::is_some(last_valid_opt_id) &&
240243
alt opts[option::get(last_valid_opt_id)].hasarg {
241244
yes | maybe { true }
242245
no { false }

0 commit comments

Comments
 (0)