Skip to content

Commit ded28f6

Browse files
committed
Fix empty bound examples
Unlike `std::cmp::Eq`, `std::cmp::Ord` is not an empty bound. Therefore, replace it with an empty bound, `std::marker::Copy`.
1 parent 85a949a commit ded28f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/generics/bounds/testcase_empty.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A consequence of how bounds work is that even if a `trait` doesn't
44
include any functionality, you can still use it as a bound. `Eq` and
5-
`Ord` are examples of such `trait`s from the `std` library.
5+
`Copy` are examples of such `trait`s from the `std` library.
66

77
```rust,editable
88
struct Cardinal;
@@ -36,8 +36,8 @@ fn main() {
3636

3737
### See also:
3838

39-
[`std::cmp::Eq`][eq], [`std::cmp::Ord`s][ord], and [`trait`s][traits]
39+
[`std::cmp::Eq`][eq], [`std::marker::Copy`][copy], and [`trait`s][traits]
4040

4141
[eq]: https://doc.rust-lang.org/std/cmp/trait.Eq.html
42-
[ord]: https://doc.rust-lang.org/std/cmp/trait.Ord.html
42+
[copy]: https://doc.rust-lang.org/std/marker/trait.Copy.html
4343
[traits]: ../../trait.md

0 commit comments

Comments
 (0)