Skip to content

Commit fc573c3

Browse files
authored
Merge pull request #270 from TonalidadeHidrica/fix-syntax-error
Fix syntax error in code example
2 parents e3136d6 + 9f9c0c2 commit fc573c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2021/prelude.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ We can fix this by using fully qualified syntax:
7575
```rust,ignore
7676
fn main() {
7777
// Now it is clear which trait method we're referring to
78-
<Vec<i32> as MyTrait<()>::from_iter(None);
78+
<Vec<i32> as MyTrait<()>>::from_iter(None);
7979
}
8080
```
8181

0 commit comments

Comments
 (0)