Skip to content

Commit e3136d6

Browse files
authored
Merge pull request #269 from minstrel1977/master
Fixed an example error of prelude.md
2 parents 7c0088c + 3db90c0 commit e3136d6

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<i32>>::from_iter(None);
78+
<Vec<i32> as MyTrait<()>::from_iter(None);
7979
}
8080
```
8181

0 commit comments

Comments
 (0)