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.
This commit is contained in:
Luke Francl 2025-04-10 05:04:15 -07:00 • committed by GitHub
commit dffae27cf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ impl Calculator {
} }
// sync function // sync function
#[tool(description = "Calculate the sum of two numbers")] #[tool(description = "Calculate the difference of two numbers")]
fn sub( fn sub(
&self, &self,
#[tool(param)] #[tool(param)]

View file

@ -20,7 +20,7 @@ impl Calculator {
(a + b).to_string() (a + b).to_string()
} }
#[tool(description = "Calculate the sub of two numbers")] #[tool(description = "Calculate the difference of two numbers")]
fn sub( fn sub(
&self, &self,
#[tool(param)] #[tool(param)]