Skip to content

Commit 992a59e

Browse files
committed
Using an untyped, one-letter variable binding as an argument to a function and then not using it until over 100 lines later is just mean.
1 parent 584b405 commit 992a59e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/flags.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl Flags {
8989
opts.optopt("j", "jobs", "number of jobs to run in parallel", "JOBS");
9090
opts.optflag("h", "help", "print this help message");
9191

92-
let usage = |n, opts: &Options| -> ! {
92+
let usage = |exit_code, opts: &Options| -> ! {
9393
let subcommand_help = format!("\
9494
Usage: x.py <subcommand> [options] [<paths>...]
9595
@@ -191,7 +191,7 @@ Arguments:
191191
}
192192
}
193193

194-
process::exit(n);
194+
process::exit(exit_code);
195195
};
196196
if args.len() == 0 {
197197
println!("a subcommand must be passed");

0 commit comments

Comments
 (0)