Skip to content

Commit 91a9f82

Browse files
committed
Rollup merge of #26131 - astraw:fix-trait-comment, r=alexcrichton
Hi, I think the comments are wrong in the example and this PR offers my suggested fix.
2 parents 67bb4e9 + 1fff553 commit 91a9f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/traits/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ implement `Convert` like so:
120120

121121
```rust
122122
impl Convert<uint> for int { ... } // int -> uint
123-
impl Convert<int> for uint { ... } // uint -> uint
123+
impl Convert<int> for uint { ... } // uint -> int
124124
```
125125

126126
Now imagine there is some code like the following:

0 commit comments

Comments
 (0)