forked from shadowfacts/shadowfacts.net
Fix code snippeting Part 6: Grouping
This commit is contained in:
parent
7b4fb77153
commit
dad7ed06dc
|
@ -84,8 +84,8 @@ And now it can parse grouped expressions:
|
||||||
```rust
|
```rust
|
||||||
fn main() {
|
fn main() {
|
||||||
let tokens = tokenize("(1)");
|
let tokens = tokenize("(1)");
|
||||||
if let node = parse(tokens) {
|
if let node = parse(&tokens) {
|
||||||
println!("node: {:#?}", node);
|
println!("node: {:#?}", &node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue