Skip to content

Commit f8f6f6e

Browse files
authored
Fix cmovnz documentation (#991)
cmovnz moves when condition is **not** 0.
1 parent 3ed8852 commit f8f6f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmov/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub trait Cmov {
2727
///
2828
/// Uses a `test` instruction to check if the given `condition` value is
2929
/// equal to zero, conditionally moves `value` to `self` when `condition` is
30-
/// equal to zero.
30+
/// not equal to zero.
3131
fn cmovnz(&mut self, value: &Self, condition: Condition);
3232

3333
/// Move if zero.

0 commit comments

Comments
 (0)