Skip to content

Commit dffae27

Browse files
authored
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.
1 parent 19e6d45 commit dffae27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl Calculator {
137137
}
138138
139139
// sync function
140-
#[tool(description = "Calculate the sum of two numbers")]
140+
#[tool(description = "Calculate the difference of two numbers")]
141141
fn sub(
142142
&self,
143143
#[tool(param)]

examples/servers/src/common/calculator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl Calculator {
2020
(a + b).to_string()
2121
}
2222

23-
#[tool(description = "Calculate the sub of two numbers")]
23+
#[tool(description = "Calculate the difference of two numbers")]
2424
fn sub(
2525
&self,
2626
#[tool(param)]

0 commit comments

Comments
 (0)