diff --git a/src/items/unions.md b/src/items/unions.md index 22c40df7c..26c7481ad 100644 --- a/src/items/unions.md +++ b/src/items/unions.md @@ -120,7 +120,7 @@ fn is_zero(v: Value) -> bool { unsafe { match v { Value { tag: I, u: U { i: 0 } } => true, - Value { tag: F, u: U { f: 0.0 } } => true, + Value { tag: F, u: U { f: num } } if num == 0.0 => true, _ => false, } }