Commit f4a6c92a authored by LingBin's avatar LingBin

Fix typo in bvar_c++.md

There are two method to expose a bvar, one is `expose`, the other is `expose_as`
parent 65762708
......@@ -144,7 +144,7 @@ Variable是所有bvar的基类,主要提供全局注册,列举,查询等
// find_exposed
// Return 0 on success, -1 otherwise.
int expose(const butil::StringPiece& name);
int expose(const butil::StringPiece& prefix, const butil::StringPiece& name);
int expose_as(const butil::StringPiece& prefix, const butil::StringPiece& name);
```
全局曝光后的bvar名字便为name或prefix + name,可通过以_exposed为后缀的static函数查询。比如Variable::describe_exposed(name)会返回名为name的bvar的描述。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment