From ded28f6477cc3cdcfa6e2f294e06e45c5aaa283b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20Karabulut?= Date: Sun, 26 Apr 2020 11:05:10 +0300 Subject: [PATCH] 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`. --- src/generics/bounds/testcase_empty.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generics/bounds/testcase_empty.md b/src/generics/bounds/testcase_empty.md index df4904a3d5..e956a57e42 100644 --- a/src/generics/bounds/testcase_empty.md +++ b/src/generics/bounds/testcase_empty.md @@ -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; @@ -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