Update book.

This commit is contained in:
Sunli 2020-09-28 14:43:12 +08:00
parent fb026588ad
commit e42f5a4477
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}