Skip to content

Commit 407bc54

Browse files
committed
Prefer print over assert for $alias docs
1 parent 0b50594 commit 407bc54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/New Features/Preprocessing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ or write simple functions which will be fully inlined at the call site:
8484

8585
```pluto
8686
$alias add(a, b) = a + b
87-
assert(add(1, 2) == 3)
87+
print(add(1, 2)) --> 3
8888
```
8989

9090
If you want to write an alias over multiple lines, you can use a backslash to continue it:
@@ -95,5 +95,5 @@ $alias seq = "a" \
9595
"b" \
9696
.. \
9797
"c"
98-
assert(seq == "abc")
98+
print(seq) --> abc
9999
```

0 commit comments

Comments
 (0)