Skip to content

Commit 2744cde

Browse files
authored
fix(typo): nit language corrections (#90)
1 parent 6a74451 commit 2744cde

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/rmcp/tests/common/calculator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ impl Calculator {
1818
(a + b).to_string()
1919
}
2020

21-
#[tool(description = "Calculate the sum of two numbers")]
21+
#[tool(description = "Calculate the sub of two numbers")]
2222
fn sub(
2323
&self,
2424
#[tool(param)]
2525
#[schemars(description = "the left hand side number")]
2626
a: i32,
2727
#[tool(param)]
28-
#[schemars(description = "the left hand side number")]
28+
#[schemars(description = "the right hand side number")]
2929
b: i32,
3030
) -> String {
3131
(a - b).to_string()

examples/transport/src/common/calculator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ impl Calculator {
1414
(a + b).to_string()
1515
}
1616

17-
#[tool(description = "Calculate the sum of two numbers")]
17+
#[tool(description = "Calculate the sub of two numbers")]
1818
fn sub(
1919
&self,
2020
#[tool(param)]
2121
#[schemars(description = "the left hand side number")]
2222
a: i32,
2323
#[tool(param)]
24-
#[schemars(description = "the left hand side number")]
24+
#[schemars(description = "the right hand side number")]
2525
b: i32,
2626
) -> String {
2727
(a - b).to_string()

examples/wasi/src/calculator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ impl Calculator {
1818
(a + b).to_string()
1919
}
2020

21-
#[tool(description = "Calculate the sum of two numbers")]
21+
#[tool(description = "Calculate the sub of two numbers")]
2222
fn sub(
2323
&self,
2424
#[tool(param)]
2525
#[schemars(description = "the left hand side number")]
2626
a: i32,
2727
#[tool(param)]
28-
#[schemars(description = "the left hand side number")]
28+
#[schemars(description = "the right hand side number")]
2929
b: i32,
3030
) -> String {
3131
(a - b).to_string()

0 commit comments

Comments
 (0)