Rollup merge of #21345 - glacjay:patch-1, r=alexcrichton

The reference should be `x`, not `FOO` itself.
This commit is contained in:
Barosl LEE 2015-01-21 02:16:48 +09:00
commit 4419fa39c2

View file

@ -395,7 +395,7 @@ static FOO: i32 = 5;
let x: &'static i32 = &FOO; 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. to it.
# Shared Ownership # Shared Ownership