Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
fix Dictionary.update type
Browse files Browse the repository at this point in the history
  • Loading branch information
brinkokevin committed Apr 29, 2024
1 parent dcdb17c commit 14fe158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dictionary/update.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end
@function update
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to update.
@param dictionary {[K]: V?} -- The dictionary to update.
@param key K -- The key to update.
@param updater? (value: V, key: K) -> U -- The updater function.
@param callback? (key: K) -> C -- The callback function.
Expand All @@ -37,7 +37,7 @@ end
```
]=]
local function update<K, V, U, C>(
dictionary: { [K]: V },
dictionary: { [K]: V? },
key: K,
updater: ((value: V, key: K) -> U)?,
callback: ((key: K) -> C)?
Expand Down

0 comments on commit 14fe158

Please sign in to comment.