docs(macro): fix visibility attribute's usage of handler macro (#481)

This commit is contained in:
4t145 2025-10-13 11:21:39 +08:00 • committed by GitHub
commit 75a7e48441
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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() {