docs(macro): fix visibility attribute's usage of handler macro (#481)
This commit is contained in:
parent
b749e3c9b4
commit
75a7e48441
1 changed files with 5 additions and 4 deletions
|
|
@ -72,7 +72,7 @@ Or specify the visibility and router name, which would be helpful when you want
|
|||
|
||||
```rust
|
||||
mod a {
|
||||
#[tool_router(router = tool_router_a, vis = pub)]
|
||||
#[tool_router(router = tool_router_a, vis = "pub")]
|
||||
impl MyToolHandler {
|
||||
#[tool]
|
||||
fn my_tool_a() {
|
||||
|
|
@ -82,7 +82,7 @@ mod a {
|
|||
}
|
||||
|
||||
mod b {
|
||||
#[tool_router(router = tool_router_b, vis = pub)]
|
||||
#[tool_router(router = tool_router_b, vis = "pub")]
|
||||
impl MyToolHandler {
|
||||
#[tool]
|
||||
fn my_tool_b() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue