Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6f6c4cf

Browse files
authoredApr 28, 2021
Merge pull request #312 from assuncaocharles/patch-1
2 parents a754cd0 + e4bb6b4 commit 6f6c4cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎pages/docs/manual/latest/pattern-matching-destructuring.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ var data = {
189189

190190
if (typeof data === "number") {
191191
console.log("Bah.");
192-
} else if (data.TAG) {
193-
console.log("Success! Product shipped!");
194-
} else {
192+
} else if (data.TAG === /* BadResult */ 0) {
195193
console.log("Something's wrong. The error code is: " + "Product shipped!".toString());
194+
} else {
195+
console.log("Success! Product shipped!");
196196
}
197197
```
198198

0 commit comments

Comments
 (0)
Please sign in to comment.