Update book.
This commit is contained in:
parent
fb026588ad
commit
e42f5a4477
|
@ -25,7 +25,7 @@ struct Query;
|
||||||
|
|
||||||
#[Object]
|
#[Object]
|
||||||
impl Query {
|
impl Query {
|
||||||
#[field(desc = "Returns the sum of a and b")]
|
/// Returns the sum of a and b
|
||||||
async fn add(&self, a: i32, b: i32) -> i32 {
|
async fn add(&self, a: i32, b: i32) -> i32 {
|
||||||
a + b
|
a + b
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ struct Query;
|
||||||
|
|
||||||
#[Object]
|
#[Object]
|
||||||
impl Query {
|
impl Query {
|
||||||
#[field(desc = "Returns the sum of a and b")]
|
/// Returns the sum of a and b
|
||||||
async fn add(&self, a: i32, b: i32) -> i32 {
|
async fn add(&self, a: i32, b: i32) -> i32 {
|
||||||
a + b
|
a + b
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user