Skip to content

Commit

Permalink
Fix cmovnz documentation (#991)
Browse files Browse the repository at this point in the history
cmovnz moves when condition is **not** 0.
  • Loading branch information
LGFae committed Dec 9, 2023
1 parent 3ed8852 commit f8f6f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmov/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub trait Cmov {
///
/// Uses a `test` instruction to check if the given `condition` value is
/// equal to zero, conditionally moves `value` to `self` when `condition` is
/// equal to zero.
/// not equal to zero.
fn cmovnz(&mut self, value: &Self, condition: Condition);

/// Move if zero.
Expand Down

0 comments on commit f8f6f6e

Please sign in to comment.