From 39f7a90bcbfb1b2ea3e5fec558fe0a053bd137fd Mon Sep 17 00:00:00 2001 From: Skarlett <360d@pm.me> Date: Fri, 11 Mar 2022 04:14:32 -0600 Subject: [PATCH] correct lifetime/basic-solution-2 --- solutions/lifetime/lifetime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/lifetime/lifetime.md b/solutions/lifetime/lifetime.md index 68be366..bad1c2f 100644 --- a/solutions/lifetime/lifetime.md +++ b/solutions/lifetime/lifetime.md @@ -49,7 +49,7 @@ struct Example<'a, 'b> { } /* Fix function signature */ -fn fix_me<'b>(foo: &Example<'b>) -> &'b NoCopyType +fn fix_me<'b>(foo: &Example<'_, 'b>) -> &'b NoCopyType { foo.b } fn main()