diff options
| author | Jay True <glacjay@gmail.com> | 2015-01-18 10:58:55 +0800 |
|---|---|---|
| committer | Jay True <glacjay@gmail.com> | 2015-01-18 10:58:55 +0800 |
| commit | 2b6efbf92dfabbe0a938e68becdd87e3cbc8fdbc (patch) | |
| tree | 03f71919542a2980a6e81921eb8a219b31357fab /src | |
| parent | f4f10dba2975b51c2d2c92157018db3ac13d4d4a (diff) | |
| download | rust-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.md | 2 |
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 |
