Skip to content

Commit

Permalink
Merge pull request #1343 from gokhanettin/fix-empty-bound-examples
Browse files Browse the repository at this point in the history
Fix empty bound examples
  • Loading branch information
marioidival authored May 13, 2020
2 parents 8c26bbd + ded28f6 commit e7b0f62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generics/bounds/testcase_empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

```rust,editable
struct Cardinal;
Expand Down Expand Up @@ -36,8 +36,8 @@ fn main() {

### See also:

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

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

0 comments on commit e7b0f62

Please sign in to comment.