Fix mistake in example · qinheping/verify-rust-std@cb0529a (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit cb0529a
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -942,7 +942,7 @@ impl<T: Clone> Clone for Reverse { | ||
942 | 942 | /// |
943 | 943 | /// // Antisymmetry requirement of `Ord` is not given. Only one of a < c and c < a is allowed to be |
944 | 944 | /// // true, not both or neither. |
945 | -/// assert_eq!((a < c) as u8 + (b < c) as u8, 2); | |
945 | +/// assert_eq!((a < c) as u8 + (c < a) as u8, 2); | |
946 | 946 | /// ``` |
947 | 947 | /// |
948 | 948 | /// The documentation of [`PartialOrd`] contains further examples, for example it's wrong for |