Merge pull request #651 from ecklf/docs-fix-default-value

docs(default_value): fix macro syntax error
This commit is contained in:
Sunli 2021-10-07 09:23:54 +08:00 committed by GitHub
commit c9c2fc630e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ enum MyInterface {
```rust
use async_graphql::*;
#derive(InputObject)
#[derive(InputObject)]
struct MyInputObject {
#[graphql(default)]
value1: i32,

View File

@ -47,7 +47,7 @@ enum MyInterface {
```rust
use async_graphql::*;
#derive(InputObject)
#[derive(InputObject)]
struct MyInputObject {
#[graphql(default)]
value1: i32,