From 7fea57bdddde04090cc95112b47d0a1a86c341bc Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Sun, 25 Jan 2026 12:54:33 +0000 Subject: Fix for #123 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c6ed5d5..9159ea2 100644 --- a/README.md +++ b/README.md @@ -362,9 +362,9 @@ match val { // Destructuring Enums match shape { - Circle(r) => print(f"Radius: {r}"), - Rect(w, h) => print(f"Area: {w*h}"), - Point => print("Point") + Shape::Circle(r) => println "Radius: {r}", + Shape::Rect(w, h) => println "Area: {w*h}", + Shape::Point => println "Point" } ``` @@ -377,7 +377,7 @@ match opt { Some(ref x) => { // 'x' is a pointer to the value inside 'opt' // 'opt' is NOT moved/consumed here - print(x.field); + println "{x.field}"; }, None => {} } -- cgit v1.2.3