From d5456b25c8f8612f39c9d999ef8fbdf8869c5614 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Thu, 17 Aug 2023 09:49:35 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- .../database/data-persistence-by-preferences.md | 6 +++--- en/application-dev/database/data-sync-of-kv-store.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/en/application-dev/database/data-persistence-by-preferences.md b/en/application-dev/database/data-persistence-by-preferences.md index e37c12369d..553050a55a 100644 --- a/en/application-dev/database/data-persistence-by-preferences.md +++ b/en/application-dev/database/data-persistence-by-preferences.md @@ -68,7 +68,7 @@ The following table lists the APIs used for persisting user preference data. For return; } console.info('Succeeded in getting preferences.'); - // Perform related data operations. + // Before performing related data operations, obtain a Preferences instance. }) } catch (err) { console.error(`Failed to get preferences. Code:${err.code},message:${err.message}`); @@ -93,7 +93,7 @@ The following table lists the APIs used for persisting user preference data. For return; } console.info('Succeeded in getting preferences.'); - // Perform related data operations. + // Before performing related data operations, obtain a Preferences instance. }) } catch (err) { console.error(`Failed to get preferences. Code is ${err.code},message:${err.message}`); @@ -220,4 +220,4 @@ The following table lists the APIs used for persisting user preference data. For } catch (err) { console.error(`Failed to delete preferences. Code:${err.code}, message:${err.message}`); } - ``` + ``` \ No newline at end of file diff --git a/en/application-dev/database/data-sync-of-kv-store.md b/en/application-dev/database/data-sync-of-kv-store.md index eb8994570f..b23dd91ed1 100644 --- a/en/application-dev/database/data-sync-of-kv-store.md +++ b/en/application-dev/database/data-sync-of-kv-store.md @@ -171,7 +171,7 @@ The following uses a single KV store as an example to describe how to implement return; } console.info('Succeeded in getting KVStore.'); - // Perform related data operations. + // Before performing related data operations, obtain a KV store instance. }); } catch (e) { console.error(`An unexpected error occurred. Code:${e.code},message:${e.message}`); @@ -275,4 +275,4 @@ The following uses a single KV store as an example to describe how to implement } } }); - ``` + ``` \ No newline at end of file -- GitLab