Skip to content

Commit 3219cc6

Browse files
authored
Update fn name in docstrings: "run-state" -> "run"
When the state monad was re-added in #210, `*-state` functions were renamed to `*` (#210 (comment)) but `run-state` was not updated to `run` in a few docstrings.
1 parent 17eaa58 commit 3219cc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cats/monad/state.cljc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
y (put-state (inc x))]
142142
(return y)))
143143
(def initial-state 1)
144-
(run-state computation initial-state)
144+
(run computation initial-state)
145145
This should return something to: #<Pair [1 2]>"
146146
[state seed]
147147
((p/-extract state) seed))
@@ -151,7 +151,7 @@
151151
wrapped computation and return the resultant
152152
value, ignoring the state.
153153
Equivalent to taking the first value of the pair instance
154-
returned by `run-state` function."
154+
returned by `run` function."
155155
[state seed]
156156
(first (run state seed)))
157157

@@ -160,7 +160,7 @@
160160
wrapped computation and return the resultant
161161
state.
162162
Equivalent to taking the second value of the pair instance
163-
returned by `run-state` function."
163+
returned by `run` function."
164164
[state seed]
165165
(second (run state seed)))
166166

0 commit comments

Comments
 (0)