From 27b5a40c137cb565df1e0c7d1e87ae803cc736e7 Mon Sep 17 00:00:00 2001 From: Luis Paulo Date: Sat, 11 Jul 2020 11:48:44 +0100 Subject: [PATCH 1/2] Fix API typos --- website/docs/API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/API.md b/website/docs/API.md index e10667ce..a1e1ac73 100644 --- a/website/docs/API.md +++ b/website/docs/API.md @@ -25,7 +25,7 @@ static getItem(key: string, [callback]: ?(error: ?Error, result: ?string) => voi `Promise` resolving with a string value, if entry exists for given `key`, or `null` otherwise. -`Promise` can be also rejects in case of underlying storage error. +`Promise` rejects in case of underlying storage error. **Example**: @@ -82,7 +82,7 @@ static setItem(key: string, value: string, [callback]: ?(error: ?Error) => void) `Promise` resolving when the set operation is completed. -`Promise` can be also rejects in case of underlying storage error. +`Promise` rejects in case of underlying storage error. **Example**: From c216d32a0726cd2e70dfbba272d74e328f9cdd2d Mon Sep 17 00:00:00 2001 From: Luis Paulo Date: Sat, 11 Jul 2020 12:56:12 +0100 Subject: [PATCH 2/2] Fix API promise rejection sentence (again) --- website/docs/API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/API.md b/website/docs/API.md index a1e1ac73..6d65318e 100644 --- a/website/docs/API.md +++ b/website/docs/API.md @@ -25,7 +25,7 @@ static getItem(key: string, [callback]: ?(error: ?Error, result: ?string) => voi `Promise` resolving with a string value, if entry exists for given `key`, or `null` otherwise. -`Promise` rejects in case of underlying storage error. +`Promise` can also be rejected in case of underlying storage error. **Example**: @@ -82,7 +82,7 @@ static setItem(key: string, value: string, [callback]: ?(error: ?Error) => void) `Promise` resolving when the set operation is completed. -`Promise` rejects in case of underlying storage error. +`Promise` can also be rejected in case of underlying storage error. **Example**: