From dffae27cf0ec2dd9e143c5f5a688f53ae8de9449 Mon Sep 17 00:00:00 2001 From: Luke Francl Date: Thu, 10 Apr 2025 05:04:15 -0700 Subject: [PATCH] docs: update calculator example description (#115) 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 aa75a81..65b2ab2 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,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 f2de8f6..68beecc 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)]