diff options
| author | sudokit <64897647+sudokit@users.noreply.github.com> | 2026-01-30 15:01:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-30 15:01:42 +0200 |
| commit | ec140e5e1823ed72e1ac8ab4af121dbe1b3f85d7 (patch) | |
| tree | 4b07185f34df1a55c95d34bd0ed5e16a1d14f246 /README.md | |
| parent | 0427d254207a69e394499d1abaea768f484f1cb5 (diff) | |
Added missing brackets for enum match expression
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -465,9 +465,9 @@ match val { // Destructuring Enums match shape { - Shape::Circle(r) => println "Radius: {r}", - Shape::Rect(w, h) => println "Area: {w*h}", - Shape::Point => println "Point" + Shape::Circle(r) => { println "Radius: {r}" }, + Shape::Rect(w, h) => { println "Area: {w*h}" }, + Shape::Point => { println "Point" }, } ``` |
