Update book.
This commit is contained in:
parent
fb026588ad
commit
e42f5a4477
|
@ -25,7 +25,7 @@ struct Query;
|
|||
|
||||
#[Object]
|
||||
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 {
|
||||
a + b
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ struct Query;
|
|||
|
||||
#[Object]
|
||||
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 {
|
||||
a + b
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user