From 336c98eddb4ac6a9caf39ff34b89b1289e56714c Mon Sep 17 00:00:00 2001 From: Atsuhiro Takahashi Date: Thu, 18 Jun 2020 21:59:45 +0900 Subject: [PATCH] Fix sample code in the book. --- docs/en/src/define_complex_object.md | 2 +- docs/zh-CN/src/define_complex_object.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 +```