aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3626b29..ddbcd46 100644
--- a/README.md
+++ b/README.md
@@ -56,5 +56,9 @@ fn subtract(x, y) {
}
// this will either add x and y if x is less than y, or return the difference between x and y
-let result = if (x < y) { add(x, y) } else { subtract(x, y) };
+let result = if (x < y) {
+ add(x, y)
+} else {
+ subtract(x, y)
+}; // result = 15
``` \ No newline at end of file