From 4c7f31d4c85c45add77e76c2e036491a82426bea Mon Sep 17 00:00:00 2001 From: shawn_he Date: Mon, 13 Feb 2023 14:22:07 +0800 Subject: [PATCH] update doc Signed-off-by: shawn_he --- en/application-dev/dfx/apprecovery-guidelines.md | 6 +++--- en/application-dev/dfx/errormanager-guidelines.md | 4 ++-- .../reference/apis/js-apis-system-location.md | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/en/application-dev/dfx/apprecovery-guidelines.md b/en/application-dev/dfx/apprecovery-guidelines.md index b2992e7c99..1863eac4f5 100644 --- a/en/application-dev/dfx/apprecovery-guidelines.md +++ b/en/application-dev/dfx/apprecovery-guidelines.md @@ -88,9 +88,9 @@ The following is an example of **MainAbility**: #### Importing the Service Package ```ts -import errorManager from '@ohos.app.ability.errorManager' -import appRecovery from '@ohos.app.ability.appRecovery' -import AbilityConstant from '@ohos.app.ability.AbilityConstant' +import errorManager from '@ohos.app.ability.errorManager'; +import appRecovery from '@ohos.app.ability.appRecovery'; +import AbilityConstant from '@ohos.app.ability.AbilityConstant'; ``` #### Actively Saving Status and Restoring Data diff --git a/en/application-dev/dfx/errormanager-guidelines.md b/en/application-dev/dfx/errormanager-guidelines.md index 631445b862..83f7067f4e 100644 --- a/en/application-dev/dfx/errormanager-guidelines.md +++ b/en/application-dev/dfx/errormanager-guidelines.md @@ -36,8 +36,8 @@ When an asynchronous callback is used, the return value can be processed directl ## Development Example ```ts -import Ability from '@ohos.application.Ability' -import errorManager from '@ohos.application.errorManager' +import UIAbility from '@ohos.app.ability.UIAbility'; +import errorManager from '@ohos.app.ability.errorManager'; var registerId = -1; var callback = { diff --git a/en/application-dev/reference/apis/js-apis-system-location.md b/en/application-dev/reference/apis/js-apis-system-location.md index 1226519b95..140e3bd3d3 100644 --- a/en/application-dev/reference/apis/js-apis-system-location.md +++ b/en/application-dev/reference/apis/js-apis-system-location.md @@ -85,7 +85,7 @@ getLocationType(Object): void Obtains the supported location types. > **NOTE** -> This API is deprecated since API version 9. The location subsystem supports only two location types: GNSS positioning and network positioning. No APIs will be provided to query the supported location types. +> This API is deprecated since API version 9. The location subsystem supports only two location types: GPS positioning and network positioning. No APIs will be provided to query the supported location types. **System capability**: SystemCapability.Location.Location.Lite @@ -101,7 +101,7 @@ Obtains the supported location types. | Name| Type| Description| | -------- | -------- | -------- | -| types | Array<string> | Available location types, ['gnss', 'network']| +| types | Array<string> | Available location types, ['gps', 'network']| **Example** -- GitLab