Fix slice syntax
This commit is contained in:
parent
6a0b50f278
commit
ee12e10ac6
@ -76,7 +76,7 @@ struct InterpreterState {
|
|||||||
|
|
||||||
impl ReplState for InterpreterState {
|
impl ReplState for InterpreterState {
|
||||||
fn update_state(&mut self, input: &Vec<&str>) {
|
fn update_state(&mut self, input: &Vec<&str>) {
|
||||||
match &input[..] {
|
match input[..] {
|
||||||
["set", "show", "tokens", "true"] => {
|
["set", "show", "tokens", "true"] => {
|
||||||
self.show_tokens = true;
|
self.show_tokens = true;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user