diff options
| author | bors <bors@rust-lang.org> | 2016-02-27 15:06:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-02-27 15:06:19 +0000 |
| commit | c5237b02b96b199abdcf1ddb472b0080fdff4ccd (patch) | |
| tree | 0e27a58866c8260777f300624defca91ae86f2bd /src | |
| parent | acdd3b9f5a1b582e4850aae78931de64819f425e (diff) | |
| parent | 9eda98a587bac7ff71664e2db4d97efc64c4ff1e (diff) | |
| download | rust-c5237b02b96b199abdcf1ddb472b0080fdff4ccd.tar.gz rust-c5237b02b96b199abdcf1ddb472b0080fdff4ccd.zip | |
Auto merge of #31940 - teoryn:patch-2, r=steveklabnik
See http://www.ietf.org/rfc/rfc2119.txt
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/book/const-and-static.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/book/const-and-static.md b/src/doc/book/const-and-static.md index 7d555b52a98..b7042854bd2 100644 --- a/src/doc/book/const-and-static.md +++ b/src/doc/book/const-and-static.md @@ -64,16 +64,16 @@ unsafe { [unsafe]: unsafe.html -Furthermore, any type stored in a `static` must be `Sync`, and may not have +Furthermore, any type stored in a `static` must be `Sync`, and must not have a [`Drop`][drop] implementation. [drop]: drop.html # Initializing -Both `const` and `static` have requirements for giving them a value. They may -only be given a value that’s a constant expression. In other words, you cannot -use the result of a function call or anything similarly complex or at runtime. +Both `const` and `static` have requirements for giving them a value. They must +be given a value that’s a constant expression. In other words, you cannot use +the result of a function call or anything similarly complex or at runtime. # Which construct should I use? |
