Skip to content

Commit 2b6efbf

Browse files
committed
fix an error about the static lifetime
The reference should be `x`, not `FOO` itself.
1 parent f4f10db commit 2b6efbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/ownership.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static FOO: i32 = 5;
395395
let x: &'static i32 = &FOO;
396396
```
397397

398-
This adds an `i32` to the data segment of the binary, and `FOO` is a reference
398+
This adds an `i32` to the data segment of the binary, and `x` is a reference
399399
to it.
400400

401401
# Shared Ownership

0 commit comments

Comments
 (0)