mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-26 05:45:37 +03:00
core: fix docstrings for doto*
This commit is contained in:
parent
ac6979fcbb
commit
984994513d
@ -775,7 +775,7 @@ the program will be aborted with an error message.")
|
||||
(list 'System.abort)
|
||||
(list 'bottom)))
|
||||
|
||||
(doc doto "evaluates `thing`, then calls all of the functions on `x` and
|
||||
(doc doto "evaluates `thing`, then calls all of the functions on it and
|
||||
returns it. Useful for chaining mutating, imperative functions, and thus
|
||||
similar to `->`. If you need `thing` to be passed as a `ref` into `expressions`
|
||||
functions, use [`doto-ref`](#doto-ref) instead.
|
||||
@ -796,7 +796,7 @@ Example:
|
||||
s
|
||||
(cons 'do (map (fn [expr] (cons (car expr) (cons s (cdr expr)))) expressions))))))
|
||||
|
||||
(doc doto-ref "evaluates `thing`, then calls all of the functions on `x` and
|
||||
(doc doto-ref "evaluates `thing`, then calls all of the functions on it and
|
||||
returns it. Useful for chaining mutating, imperative functions, and thus
|
||||
similar to `->`. If you need `thing` not to be passed as a `ref` into
|
||||
`expressions` functions, use [`doto`](#doto) instead.
|
||||
|
Loading…
Reference in New Issue
Block a user