Skip to content

Commit

Permalink
docs: Update Storage code example to be accurate (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-roberts authored and jcesarmobile committed Nov 12, 2019
1 parent b941e88 commit 2ecea21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/docs-md/apis/storage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async setItem() {
}

async getItem() {
const value = await Storage.get({ key: 'name' });
const { value } = await Storage.get({ key: 'name' });
console.log('Got item: ', value);
}

Expand All @@ -70,7 +70,7 @@ async removeItem() {
}

async keys() {
const keys = await Storage.keys();
const { keys } = await Storage.keys();
console.log('Got keys: ', keys);
}

Expand Down

0 comments on commit 2ecea21

Please sign in to comment.