From 5204809b99ec72dbddf82bd9eba8a538435a7927 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Sun, 20 Mar 2022 11:33:05 +0000 Subject: [PATCH] update en/application-dev/reference/apis/js-apis-data-preferences.md. Signed-off-by: Annie_wang --- en/application-dev/reference/apis/js-apis-data-preferences.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/application-dev/reference/apis/js-apis-data-preferences.md b/en/application-dev/reference/apis/js-apis-data-preferences.md index bc3d5fdfcf..31d9f38316 100644 --- a/en/application-dev/reference/apis/js-apis-data-preferences.md +++ b/en/application-dev/reference/apis/js-apis-data-preferences.md @@ -187,7 +187,7 @@ removePreferencesFromCache(context: Context, name: string): Promise<void> Removes the singleton **Preferences** instance of a file from the cache. The removed instance cannot be used for data operations. Otherwise, data inconsistency will occur. -This method uses an asynchronous callback to return the result. +This method uses a promise to return the result. **System capability**: SystemCapability.DistributedDataManager.Preferences.Core -- GitLab