From 2b6efbf92dfabbe0a938e68becdd87e3cbc8fdbc Mon Sep 17 00:00:00 2001 From: Jay True Date: Sun, 18 Jan 2015 10:58:55 +0800 Subject: [PATCH] fix an error about the static lifetime The reference should be `x`, not `FOO` itself. --- src/doc/trpl/ownership.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/ownership.md b/src/doc/trpl/ownership.md index 9ced5bb656c..8b7e37dd4c2 100644 --- a/src/doc/trpl/ownership.md +++ b/src/doc/trpl/ownership.md @@ -395,7 +395,7 @@ static FOO: i32 = 5; let x: &'static i32 = &FOO; ``` -This adds an `i32` to the data segment of the binary, and `FOO` is a reference +This adds an `i32` to the data segment of the binary, and `x` is a reference to it. # Shared Ownership