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); }