File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Answering this question has multiple uses:
29
29
range, you need to be able to enumerate them. One might also want to check if
30
30
and how your function fails just outside its supported range.
31
31
32
- - Exlusive ranges. If you want to ensure a variable lies within an exclusive
32
+ - Exclusive ranges. If you want to ensure a variable lies within an exclusive
33
33
range, these functions can help. E.g. to ensure that ` x ` lies within [ 0, 1)
34
34
one can write ` x.clamp(0.0, 1.0.next_down()) ` .
35
35
@@ -178,7 +178,7 @@ pub const fn next_down(self) -> Self {
178
178
[ drawbacks ] : #drawbacks
179
179
180
180
Two more functions get added to ` f32 ` and ` f64 ` , which may be considered
181
- cluttered by some.
181
+ already cluttered by some.
182
182
183
183
Additionally, there is a minor pitfall regarding signed zero. Repeatedly calling
184
184
` next_up ` on a negative number will iterate over all values above it, with the
You can’t perform that action at this time.
0 commit comments