diff options
Diffstat (limited to 'stdlib/source/documentation/lux/control/try.lux')
-rw-r--r-- | stdlib/source/documentation/lux/control/try.lux | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/documentation/lux/control/try.lux b/stdlib/source/documentation/lux/control/try.lux index 0019ec86c..73af005ee 100644 --- a/stdlib/source/documentation/lux/control/try.lux +++ b/stdlib/source/documentation/lux/control/try.lux @@ -23,32 +23,32 @@ ($.definition /.with "Enhances a monad with error-handling functionality." - [(with monad)]) + ($.example (with monad))) ($.definition /.lifted "Wraps a monadic value with error-handling machinery." - [(lifted monad)]) + ($.example (lifted monad))) ($.definition /.trusted (format "Assumes a Try value succeeded, and yields its value." \n "If it didn't, raises the error as a runtime error." \n "WARNING: Use with caution.") - [(trusted try)]) + ($.example (trusted try))) ($.definition /.maybe "" - [(maybe try)]) + ($.example (maybe try))) ($.definition /.of_maybe "" - [(of_maybe maybe)]) + ($.example (of_maybe maybe))) ($.definition /.else (format "Allows you to provide a default value that will be used" \n "if a (Try x) value turns out to be #Failure." \n "Note: the expression for the default value will not be computed if the base computation succeeds.") - [(= "bar" - (else "foo" {/.#Success "bar"}))] - [(= "foo" - (else "foo" {/.#Failure "KABOOM!"}))]) + ($.example (= "bar" + (else "foo" {/.#Success "bar"}))) + ($.example (= "foo" + (else "foo" {/.#Failure "KABOOM!"})))) )) |