Skip to content

Commit

Permalink
Merge pull request #683 from pnkfelix/patch-1
Browse files Browse the repository at this point in the history
Eschew fp lit pattern
  • Loading branch information
Centril authored Sep 26, 2019
2 parents fa5dfb8 + b18ea92 commit 6cf18ff
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 6cf18ff

Please sign in to comment.