Merge pull request #20 from tiborvass/fix-brif-typo

microwasm: fix comment typo for BrIf
This commit is contained in:
Jef
2019-05-08 07:29:36 +02:00
committed by GitHub

View File

@@ -458,8 +458,8 @@ pub enum Operator<Label> {
/// Returning from the function is just calling the "return" block /// Returning from the function is just calling the "return" block
target: BrTarget<Label>, target: BrTarget<Label>,
}, },
/// Pop a value off the top of the stack, jump to the `else_` label if this value is `true` /// Pop a value off the top of the stack, jump to the `then` label if this value is `true`
/// and the `then` label otherwise. The `then` and `else_` blocks must have the same parameters. /// and the `else_` label otherwise. The `then` and `else_` blocks must have the same parameters.
BrIf { BrIf {
/// Label to jump to if the value at the top of the stack is true /// Label to jump to if the value at the top of the stack is true
then: BrTargetDrop<Label>, then: BrTargetDrop<Label>,