Fix off-by-one error in show-immediate parsing

This commit is contained in:
greg 2019-07-28 11:25:21 -07:00
parent b62968379a
commit 37c77d93d7
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ impl DirectiveAction {
},
ShowImmediate => {
let cur_state = repl.get_cur_language_state();
let stage_name = match arguments.get(1) {
let stage_name = match arguments.get(0) {
Some(s) => s.to_string(),
None => return Some(format!("Must specify a thing to debug")),
};