summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 12:54:33 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 12:54:33 +0000
commit7fea57bdddde04090cc95112b47d0a1a86c341bc (patch)
tree38b2f22583aff0af6f384f1b91accfd1bba7dc23 /README.md
parenteae6d2a789f6538806a3859a144e99558d3e6caf (diff)
Fix for #123
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
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 => {}
}