diff --git a/docs/en/src/define_complex_object.md b/docs/en/src/define_complex_object.md index 67b691aa..6b5f0c28 100644 --- a/docs/en/src/define_complex_object.md +++ b/docs/en/src/define_complex_object.md @@ -25,7 +25,7 @@ impl MyObject { async fn value_from_db( &self, - ctx: &Context<'_'>, + ctx: &Context<'_>, #[arg(desc = "Id of object")] id: i64 ) -> FieldResult { let conn = ctx.data::().take(); diff --git a/docs/zh-CN/src/define_complex_object.md b/docs/zh-CN/src/define_complex_object.md index c26cfcca..c560efd0 100644 --- a/docs/zh-CN/src/define_complex_object.md +++ b/docs/zh-CN/src/define_complex_object.md @@ -23,11 +23,11 @@ impl MyObject { async fn value_from_db( &self, - ctx: &Context<'_'>, + ctx: &Context<'_>, #[arg(desc = "Id of object")] id: i64 ) -> FieldResult { let conn = ctx.data::().take(); Ok(conn.query_something(id)?.name) } } -``` \ No newline at end of file +```