Skip to content

Commit

Permalink
Fix off-by-one-error in ArgGroup printing
Browse files Browse the repository at this point in the history
  • Loading branch information
panicbit committed Apr 10, 2016
1 parent 1dd7e56 commit 3019a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ impl<'a, 'b> Parser<'a, 'b> where 'a: 'b {
for g in grps.into_iter() {
let g_string = self.args_in_group(g)
.join("|");
ret_val.push_back(format!("[{}]", &g_string[..g_string.len() - 1]));
ret_val.push_back(format!("[{}]", &g_string[..g_string.len()]));
}

ret_val
Expand Down

0 comments on commit 3019a68

Please sign in to comment.