From 498215a330d709dc06f040f10b6452761c5b7ec0 Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Mon, 17 Oct 2022 14:24:38 -0700 Subject: [PATCH] Fix some instruction docs --- cranelift/codegen/meta/src/shared/instructions.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs index ebeaf9d646a9..4ff9b678bbf7 100644 --- a/cranelift/codegen/meta/src/shared/instructions.rs +++ b/cranelift/codegen/meta/src/shared/instructions.rs @@ -52,8 +52,7 @@ fn define_control_flow( r#" Branch when zero. - If ``c`` is a `b1` value, take the branch when ``c`` is false. If - ``c`` is an integer value, take the branch when ``c = 0``. + Take the branch when ``c = 0``. "#, &formats.branch, ) @@ -67,8 +66,7 @@ fn define_control_flow( r#" Branch when non-zero. - If ``c`` is a `b1` value, take the branch when ``c`` is true. If - ``c`` is an integer value, take the branch when ``c != 0``. + Take the branch when ``c != 0``. "#, &formats.branch, )