Skip to content

Commit 7bd45ec

Browse files
authored
fix(typo): correct typo in error message for transport cancellation and field. (#404)
* fix(worker): correct typo in error message for transport cancellation Signed-off-by: Jose Bovet Derpich <[email protected]> * doc(typo): correct typo in field header for tool and tool_router usage sections Signed-off-by: Jose Bovet Derpich <[email protected]> --------- Signed-off-by: Jose Bovet Derpich <[email protected]>
1 parent 98e2b9d commit 7bd45ec

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/rmcp-macros/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This will generate a function that return the attribute of this tool, with type
1818

1919
#### Usage
2020

21-
| feied | type | usage |
21+
| field | type | usage |
2222
| :- | :- | :- |
2323
| `name` | `String` | The name of the tool. If not provided, it defaults to the function name. |
2424
| `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
4444

4545
#### Usage
4646

47-
| feied | type | usage |
47+
| field | type | usage |
4848
| :- | :- | :- |
4949
| `router` | `Ident` | The name of the router function to be generated. Defaults to `tool_router`. |
5050
| `vis` | `Visibility` | The visibility of the generated router function. Defaults to empty. |

crates/rmcp-macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mod tool_router;
1616
///
1717
/// ## Usage
1818
///
19-
/// | feied | type | usage |
19+
/// | field | type | usage |
2020
/// | :- | :- | :- |
2121
/// | `name` | `String` | The name of the tool. If not provided, it defaults to the function name. |
2222
/// | `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 {
4747
/// 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.
4848
/// ## Usage
4949
///
50-
/// | feied | type | usage |
50+
/// | field | type | usage |
5151
/// | :- | :- | :- |
5252
/// | `router` | `Ident` | The name of the router function to be generated. Defaults to `tool_router`. |
5353
/// | `vis` | `Visibility` | The visibility of the generated router function. Defaults to empty. |

crates/rmcp/src/transport/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub enum WorkerQuitReason<E> {
1515
error: E,
1616
context: Cow<'static, str>,
1717
},
18-
#[error("Transport canncelled")]
18+
#[error("Transport cancelled")]
1919
Cancelled,
2020
#[error("Transport closed")]
2121
TransportClosed,

0 commit comments

Comments
 (0)