Skip to content

Commit 05d9999

Browse files
committed
Rollup merge of rust-lang#22711 - lummax:patch-1, r=dotdash
Update the reference page to the change in rust-lang#20680.
2 parents 2d817db + 282e278 commit 05d9999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,7 +2165,7 @@ fn needs_foo_or_bar() {
21652165
21662166
// This function is only included when compiling for a unixish OS with a 32-bit
21672167
// architecture
2168-
#[cfg(all(unix, target_word_size = "32"))]
2168+
#[cfg(all(unix, target_pointer_width = "32"))]
21692169
fn on_32bit_unix() {
21702170
// ...
21712171
}
@@ -2193,9 +2193,9 @@ The following configurations must be defined by the implementation:
21932193
* `target_os = "..."`. Operating system of the target, examples include
21942194
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"`,
21952195
`"bitrig"` or `"openbsd"`.
2196-
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
2197-
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
2198-
pointers.
2196+
* `target_pointer_width = "..."`. Target pointer width in bits. This is set
2197+
to `"32"` for targets with 32-bit pointers, and likewise set to `"64"` for
2198+
64-bit pointers.
21992199
* `unix`. See `target_family`.
22002200
* `windows`. See `target_family`.
22012201

0 commit comments

Comments
 (0)