From 984994513d269e4f67848f62a76cf3af898f4277 Mon Sep 17 00:00:00 2001 From: hellerve Date: Wed, 26 Aug 2020 18:20:34 +0200 Subject: [PATCH] core: fix docstrings for doto* --- core/Macros.carp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Macros.carp b/core/Macros.carp index b5216ac9..b33cd5c9 100644 --- a/core/Macros.carp +++ b/core/Macros.carp @@ -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.