Skip to content

Commit

Permalink
Update src/makeActionCreator.lua
Browse files Browse the repository at this point in the history
Fix typo

Co-authored-by: benj <benjaminbrimeyer@gmail.com>
  • Loading branch information
ZoteTheMighty and benbrimeyer committed Dec 2, 2020
1 parent 2785e53 commit 5d1f954
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/makeActionCreator.lua
Expand Up @@ -2,7 +2,8 @@
A helper function to define a Rodux action creator with an associated name.
]]
local function makeActionCreator(name, fn)
assert(type(name) == "string", "Bad argument #1: Expecteda string name for the action creator")
assert(type(name) == "string", "Bad argument #1: Expected a string name for the action creator")

assert(type(fn) == "function", "Bad argument #2: Expected a function that creates action objects")

return setmetatable({
Expand All @@ -20,4 +21,4 @@ local function makeActionCreator(name, fn)
})
end

return makeActionCreator
return makeActionCreator

0 comments on commit 5d1f954

Please sign in to comment.