docs: migrate lib.errors to doc-comments
This commit is contained in:
parent
7f56ec4c86
commit
9858fc1d42
1 changed files with 10 additions and 5 deletions
|
|
@ -1,8 +1,13 @@
|
|||
lib: {
|
||||
## Prints a message if the condition is not met. The result of
|
||||
## the condition is returned.
|
||||
##
|
||||
## @notest
|
||||
## @type Bool -> String -> Bool
|
||||
/**
|
||||
Prints a message if the condition is not met. The result of
|
||||
the condition is returned.
|
||||
|
||||
# Type
|
||||
|
||||
```
|
||||
trace :: Bool -> String -> Bool
|
||||
```
|
||||
*/
|
||||
trace = condition: message: if condition then true else builtins.trace message false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue