diff --git a/crates/rmcp-macros/README.md b/crates/rmcp-macros/README.md index cf1317f45..7c2ff0747 100644 --- a/crates/rmcp-macros/README.md +++ b/crates/rmcp-macros/README.md @@ -18,7 +18,7 @@ This will generate a function that return the attribute of this tool, with type #### Usage -| feied | type | usage | +| field | type | usage | | :- | :- | :- | | `name` | `String` | The name of the tool. If not provided, it defaults to the function name. | | `description` | `String` | A description of the tool. The document of this function will be used. | @@ -44,7 +44,7 @@ In most case, you need to add a field for handler to store the router informatio #### Usage -| feied | type | usage | +| field | type | usage | | :- | :- | :- | | `router` | `Ident` | The name of the router function to be generated. Defaults to `tool_router`. | | `vis` | `Visibility` | The visibility of the generated router function. Defaults to empty. | diff --git a/crates/rmcp-macros/src/lib.rs b/crates/rmcp-macros/src/lib.rs index d827fe743..3a5deb4d7 100644 --- a/crates/rmcp-macros/src/lib.rs +++ b/crates/rmcp-macros/src/lib.rs @@ -16,7 +16,7 @@ mod tool_router; /// /// ## Usage /// -/// | feied | type | usage | +/// | field | type | usage | /// | :- | :- | :- | /// | `name` | `String` | The name of the tool. If not provided, it defaults to the function name. | /// | `description` | `String` | A description of the tool. The document of this function will be used. | @@ -47,7 +47,7 @@ pub fn tool(attr: TokenStream, input: TokenStream) -> TokenStream { /// In most case, you need to add a field for handler to store the router information and initialize it when creating handler, or store it with a static variable. /// ## Usage /// -/// | feied | type | usage | +/// | field | type | usage | /// | :- | :- | :- | /// | `router` | `Ident` | The name of the router function to be generated. Defaults to `tool_router`. | /// | `vis` | `Visibility` | The visibility of the generated router function. Defaults to empty. | diff --git a/crates/rmcp/src/transport/worker.rs b/crates/rmcp/src/transport/worker.rs index eaabc506e..769d448a5 100644 --- a/crates/rmcp/src/transport/worker.rs +++ b/crates/rmcp/src/transport/worker.rs @@ -15,7 +15,7 @@ pub enum WorkerQuitReason { error: E, context: Cow<'static, str>, }, - #[error("Transport canncelled")] + #[error("Transport cancelled")] Cancelled, #[error("Transport closed")] TransportClosed,