docs: migrate lib.errors to doc-comments

This commit is contained in:
KFears 2025-09-14 18:39:21 +04:00
parent 7f56ec4c86
commit 9858fc1d42
Signed by: KFearsoff
SSH key fingerprint: SHA256:sn39ts1xvi/KGQNlqDyrj8nNlhp9ilndgIolXKnPraw

View file

@ -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;
}