Skip to content

Commit

Permalink
fix: shared_prefs documentation wording
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
  • Loading branch information
Leptopoda committed Sep 26, 2023
1 parent e548ae1 commit ea466b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/shared_preferences/shared_preferences/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## NEXT

* Updates documentation for `containsKey`.

## 2.2.1

* Adds pub topics to package metadata.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class SharedPreferences {
/// String.
String? getString(String key) => _preferenceCache[key] as String?;

/// Returns true if persistent storage the contains the given [key].
/// Returns true if the persistent storage contains the given [key].
bool containsKey(String key) => _preferenceCache.containsKey(key);

/// Reads a set of string values from persistent storage, throwing an
Expand Down

0 comments on commit ea466b8

Please sign in to comment.