Skip to content

Commit 0b14224

Browse files
committed
format
1 parent 361de87 commit 0b14224

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pages/docs/manual/v12.0.0/variant.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,12 +781,15 @@ There's a linear amount of branch checking here (`O(n)`). Compare this to using
781781
```res example
782782
type animal = Dog | Cat | Bird
783783
let data = Dog
784-
let logData = data => switch data {
785-
| Dog => Console.log("Wof")
786-
| Cat => Console.log("Meow")
787-
| Bird => Console.log("Kashiiin")
784+
let logData = data => {
785+
switch data {
786+
| Dog => Console.log("Wof")
787+
| Cat => Console.log("Meow")
788+
| Bird => Console.log("Kashiiin")
789+
}
788790
}
789791
logData(data)
792+
790793
```
791794
```js
792795
function logData(data) {

0 commit comments

Comments
 (0)