From f5fbe1fe8b79636451befaef3931ca12d63f3baa Mon Sep 17 00:00:00 2001 From: abdo Date: Tue, 16 Feb 2021 05:59:33 +0300 Subject: [PATCH] Update function name in comment --- src/scope/lifetime/static_lifetime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scope/lifetime/static_lifetime.md b/src/scope/lifetime/static_lifetime.md index c9a9d095c8..3f31693faa 100644 --- a/src/scope/lifetime/static_lifetime.md +++ b/src/scope/lifetime/static_lifetime.md @@ -85,7 +85,7 @@ fn main() { print_it(i); // oops, &i only has the lifetime defined by the scope of - // use_it(), so it's not 'static: + // main(), so it's not 'static: print_it(&i); } ```