Skip to content

Commit

Permalink
Merge pull request #1053 from lingbin/fix_bvar_cpp_doc
Browse files Browse the repository at this point in the history
fix display problem in docs/cn/bvar_c++.md
  • Loading branch information
zyearn committed Mar 3, 2020
2 parents f8c188a + c9290f3 commit 23c66e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cn/bvar_c++.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ bvar::Status<std::string> status1("count2", "hello"); // the name conflicts. if
// program aborts, otherwise a fatal log is printed.
```

为避免重名,bvar的名字应加上前缀,建议为<namespace>_<module>_<name>。为了方便使用,我们提供了**expose_as**函数,接收一个前缀。
为避免重名,bvar的名字应加上前缀,建议为`<namespace>_<module>_<name>`。为了方便使用,我们提供了**expose_as**函数,接收一个前缀。
```c++
// Expose this variable with a prefix.
// Example:
Expand Down

0 comments on commit 23c66e3

Please sign in to comment.