Update README.md

This commit is contained in:
Attila Magyar 2021-06-19 21:34:21 +02:00 committed by GitHub
parent dd9aaa04de
commit db3c0cd77b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,11 +33,10 @@ For example:
10 100 max . \ prints 100 10 100 max . \ prints 100
``` ```
The else part is optional. The `else` part is optional.
```forth ```forth
: abs ( n -- absn ) : abs ( n -- n ) dup 0< if -1 * then ;
dup 0< if -1 * then ;
-10 abs . \ prints 10 -10 abs . \ prints 10
``` ```