Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Fix doc typo, the behavior is actually selecting 'x' if the bit in 'c' is 1 (#12695)

tsudzuki58633f35b30f
diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs
index a27ca30aab..29c5626610 100644
--- a/cranelift/codegen/meta/src/shared/instructions.rs
+++ b/cranelift/codegen/meta/src/shared/instructions.rs
@@ -1652,7 +1652,7 @@ pub(crate) fn define(
Conditional select of bits.
For each bit in `c`, this instruction selects the corresponding bit from `x` if the bit
- in `x` is 1 and the corresponding bit from `y` if the bit in `c` is 0. See also:
+ in `c` is 1 and the corresponding bit from `y` if the bit in `c` is 0. See also:
`select`.
"#,
&formats.ternary,