Skip to content

Commit 42d8f19

Browse files
committed
Clarify documentation
1 parent 0b4350a commit 42d8f19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Web/Storage.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ foreign import getItemForeign
8181
-> Eff (storage :: STORAGE | eff) (Nullable String)
8282

8383
-- | Add a new key/value pair to storage if a pair with the given key doesn't
84-
-- | yet exist; otherwise, replace the existing value with the given key.
84+
-- | yet exist; otherwise, replace the existing pair.
8585
-- |
8686
-- | If a previous value is equal to the new value, this function does nothing.
87-
-- | If this function can't set a new value, it throws an exception. Setting
88-
-- | can fail if the user has disabled web storage, or if the storage quota has
87+
-- | If this function can't set a new value, it throws an exception. This can
88+
-- | occur if the user has disabled web storage, or if the storage quota has
8989
-- | been exceeded, for example.
9090
foreign import setItem
9191
:: forall eff

0 commit comments

Comments
 (0)