From 2744cde0d909e214eee0034a46cfe2bbb467891f Mon Sep 17 00:00:00 2001 From: Jonathan Hendler Date: Thu, 3 Apr 2025 18:20:48 -1000 Subject: [PATCH] fix(typo): nit language corrections (#90) --- crates/rmcp/tests/common/calculator.rs | 4 ++-- examples/transport/src/common/calculator.rs | 4 ++-- examples/wasi/src/calculator.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/rmcp/tests/common/calculator.rs b/crates/rmcp/tests/common/calculator.rs index 7af075c..e179f25 100644 --- a/crates/rmcp/tests/common/calculator.rs +++ b/crates/rmcp/tests/common/calculator.rs @@ -18,14 +18,14 @@ impl Calculator { (a + b).to_string() } - #[tool(description = "Calculate the sum of two numbers")] + #[tool(description = "Calculate the sub of two numbers")] fn sub( &self, #[tool(param)] #[schemars(description = "the left hand side number")] a: i32, #[tool(param)] - #[schemars(description = "the left hand side number")] + #[schemars(description = "the right hand side number")] b: i32, ) -> String { (a - b).to_string() diff --git a/examples/transport/src/common/calculator.rs b/examples/transport/src/common/calculator.rs index a175e8e..99b7314 100644 --- a/examples/transport/src/common/calculator.rs +++ b/examples/transport/src/common/calculator.rs @@ -14,14 +14,14 @@ impl Calculator { (a + b).to_string() } - #[tool(description = "Calculate the sum of two numbers")] + #[tool(description = "Calculate the sub of two numbers")] fn sub( &self, #[tool(param)] #[schemars(description = "the left hand side number")] a: i32, #[tool(param)] - #[schemars(description = "the left hand side number")] + #[schemars(description = "the right hand side number")] b: i32, ) -> String { (a - b).to_string() diff --git a/examples/wasi/src/calculator.rs b/examples/wasi/src/calculator.rs index e45bbe5..f1c35ee 100644 --- a/examples/wasi/src/calculator.rs +++ b/examples/wasi/src/calculator.rs @@ -18,14 +18,14 @@ impl Calculator { (a + b).to_string() } - #[tool(description = "Calculate the sum of two numbers")] + #[tool(description = "Calculate the sub of two numbers")] fn sub( &self, #[tool(param)] #[schemars(description = "the left hand side number")] a: i32, #[tool(param)] - #[schemars(description = "the left hand side number")] + #[schemars(description = "the right hand side number")] b: i32, ) -> String { (a - b).to_string()