diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-22 23:32:49 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-22 23:32:49 +0100 |
commit | edf35e664157a1403c83f584dc8a99367a56e195 (patch) | |
tree | 85deaab40fa55383d616fe5d37145f64c40fc10d | |
parent | 8d28787134642e4b9813070564b6cf3a5bdce3e5 (diff) | |
download | lustre-edf35e664157a1403c83f584dc8a99367a56e195.tar.gz lustre-edf35e664157a1403c83f584dc8a99367a56e195.zip |
:recycle: Rename arg to reflect change from Cmd -> Effect.
-rw-r--r-- | lib/src/lustre/effect.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lustre/effect.gleam b/lib/src/lustre/effect.gleam index 19f54b0..3dae2aa 100644 --- a/lib/src/lustre/effect.gleam +++ b/lib/src/lustre/effect.gleam @@ -51,9 +51,9 @@ pub fn none() -> Effect(action) { /// /// -pub fn batch(cmds: List(Effect(action))) -> Effect(action) { +pub fn batch(effects: List(Effect(action))) -> Effect(action) { Effect({ - use b, Effect(a) <- list.fold(cmds, []) + use b, Effect(a) <- list.fold(effects, []) list.append(b, a) }) } |