From 70238a354b89c856ade90b3ea71ea0f216bf73a1 Mon Sep 17 00:00:00 2001 From: Chen Wei Date: Tue, 28 Mar 2023 18:33:46 +0800 Subject: [PATCH] update: change if entry not exist to entry exists --- .../docs/contract_develop/c++_contract/add_precompiled_impl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.x/zh_CN/docs/contract_develop/c++_contract/add_precompiled_impl.md b/3.x/zh_CN/docs/contract_develop/c++_contract/add_precompiled_impl.md index 908161f77..f97ccd317 100644 --- a/3.x/zh_CN/docs/contract_develop/c++_contract/add_precompiled_impl.md +++ b/3.x/zh_CN/docs/contract_develop/c++_contract/add_precompiled_impl.md @@ -167,7 +167,7 @@ get()接口实现 std::string retValue = "Hello World!"; auto entry = table->getRow(HELLO_WORLD_KEY_FIELD_NAME); - if (!entry) + if (entry) { retValue = entry->getField(HELLO_WORLD_VALUE_FIELD); }