diff --git a/README.md b/README.md index ab5544c..67083a6 100644 --- a/README.md +++ b/README.md @@ -225,12 +225,12 @@ Functions are first-class values in dust, so they are assigned to variables like ```dust # This simple function has no arguments. -say_hi = fn || { +say_hi = (fn) { (output "hi") } # This function has one argument and will return a value. -add_one <(int) -> int> = fn |number| { +add_one = (fn number ) { number + 1 }