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:
parent
19e6d4596c
commit
dffae27cf0
2 changed files with 2 additions and 2 deletions
|
|
@ -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)]
|
||||||
|
|
|
||||||
|
|
@ -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)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue