From fe0d14980499e132f7d42f3ddfd156b51aaf6541 Mon Sep 17 00:00:00 2001 From: Luke Francl Date: Wed, 9 Apr 2025 09:58:35 -0700 Subject: [PATCH] Update calculator example description The example in the README uses "sum" for both `sum` and `sub`. I changed it to "difference". For consistency, I also updated the example code to use the same term. --- README.md | 2 +- examples/servers/src/common/calculator.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e9b717de..c8dc54c7d 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ impl Calculator { } // sync function - #[tool(description = "Calculate the sum of two numbers")] + #[tool(description = "Calculate the difference of two numbers")] fn sub( &self, #[tool(param)] diff --git a/examples/servers/src/common/calculator.rs b/examples/servers/src/common/calculator.rs index f2de8f670..68beecc0c 100644 --- a/examples/servers/src/common/calculator.rs +++ b/examples/servers/src/common/calculator.rs @@ -20,7 +20,7 @@ impl Calculator { (a + b).to_string() } - #[tool(description = "Calculate the sub of two numbers")] + #[tool(description = "Calculate the difference of two numbers")] fn sub( &self, #[tool(param)]