Skip to content

Commit 81f4d1c

Browse files
changelog
1 parent e22e170 commit 81f4d1c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ profile. This started with version 0.26.0.
8181
| () -> begin
8282
match () with
8383
| () -> ()
84+
85+
- use shortcut `begin end` in `match` cases and `if then else` body. (#2744, @EmileTrotignon)
86+
```ocaml
87+
(* before *)
88+
match () with
89+
| () -> begin
90+
match () with
91+
| () ->
92+
end
93+
end
94+
(* after *)
95+
match () with
96+
| () ->
97+
begin match () with
98+
| () ->
8499
end
85100
end
86101
```

0 commit comments

Comments
 (0)