Skip to content

Commit

Permalink
Eschew fp lit pattern
Browse files Browse the repository at this point in the history
fix #563
  • Loading branch information
pnkfelix authored Sep 26, 2019
1 parent fa5dfb8 commit b18ea92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/unions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit b18ea92

Please sign in to comment.