about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJay True <glacjay@gmail.com>2015-01-18 10:58:55 +0800
committerJay True <glacjay@gmail.com>2015-01-18 10:58:55 +0800
commit2b6efbf92dfabbe0a938e68becdd87e3cbc8fdbc (patch)
tree03f71919542a2980a6e81921eb8a219b31357fab /src
parentf4f10dba2975b51c2d2c92157018db3ac13d4d4a (diff)
downloadrust-2b6efbf92dfabbe0a938e68becdd87e3cbc8fdbc.tar.gz
rust-2b6efbf92dfabbe0a938e68becdd87e3cbc8fdbc.zip
fix an error about the static lifetime
The reference should be `x`, not `FOO` itself.
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/ownership.md2
1 files changed, 1 insertions, 1 deletions
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