提交 d1939a43 编写于 作者: H hujun211

modify docs of powermanger

Signed-off-by: Nhujun211 <hujun211@huawei.com>
上级 bd9d9a80
......@@ -185,7 +185,7 @@ runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.B
console.info('create runningLock success')
})
.catch(error => {
console.log('Lock runningLock test error: ' + error)
console.log('create runningLock test error: ' + error)
});
```
......@@ -204,10 +204,10 @@ unlock(): void
runningLock.createRunningLock("running_lock_test", runningLock.RunningLockType.BACKGROUND)
.then(runningLock => {
runningLock.unlock()
console.info('unLock runningLock success')
console.info('create and unLock runningLock success')
})
.catch(error => {
console.log('unLock runningLock test error: ' + error)
console.log('create runningLock test error: ' + error)
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册