From a5f9111d36c75fda8a3949116e14a16634099129 Mon Sep 17 00:00:00 2001 From: Jonathan Hendler Date: Thu, 3 Apr 2025 11:13:51 -0700 Subject: [PATCH] nit language corrections --- 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 7af075cec..e179f2583 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 a175e8ee6..99b7314a1 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 e45bbe55c..f1c35eeac 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()