Skip to content

Commit 8f6b7a6

Browse files
authored
Merge pull request #1413 from abdnh/patch-1
Update function name in comment
2 parents 3d4c184 + f5fbe1f commit 8f6b7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scope/lifetime/static_lifetime.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn main() {
8585
print_it(i);
8686
8787
// oops, &i only has the lifetime defined by the scope of
88-
// use_it(), so it's not 'static:
88+
// main(), so it's not 'static:
8989
print_it(&i);
9090
}
9191
```

0 commit comments

Comments
 (0)