Skip to content

Commit 2679581

Browse files
mgeislergribozavr
andauthored
docs: improve language in std-traits section (#2872)
Co-authored-by: Dmitri Gribenko <gribozavr@gmail.com>
1 parent 27a5836 commit 2679581

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/std-traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<details>
66

7-
As with the standard-library types, spend time reviewing the documentation for
7+
As with the standard library types, spend time reviewing the documentation for
88
each trait.
99

1010
This section is long. Take a break midway through.

src/std-traits/operators.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ Discussion points:
4444
- You could implement `Add` for two different types, e.g.
4545
`impl Add<(i32, i32)> for Point` would add a tuple to a `Point`.
4646

47-
The `Not` trait (`!` operator) is notable because it does not "boolify" like the
48-
same operator in C-family languages; instead, for integer types it negates each
49-
bit of the number, which arithmetically is equivalent to subtracting it from -1:
50-
`!5 == -6`.
47+
The `Not` trait (`!` operator) is notable because it does not convert the
48+
argument to `bool` like the same operator in C-family languages; instead, for
49+
integer types it flips each bit of the number, which, arithmetically, is
50+
equivalent to subtracting the argument from `-1`: `!5 == -6`.
5151

5252
</details>
5353

0 commit comments

Comments
 (0)