Skip to content

Commit 282e278

Browse files
committed
doc: Fix target_{word_size,pointer_width} renaming
Update the reference page to the change in #20680.
1 parent f0f7ca2 commit 282e278

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/reference.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ fn needs_foo_or_bar() {
21622162
21632163
// This function is only included when compiling for a unixish OS with a 32-bit
21642164
// architecture
2165-
#[cfg(all(unix, target_word_size = "32"))]
2165+
#[cfg(all(unix, target_pointer_width = "32"))]
21662166
fn on_32bit_unix() {
21672167
// ...
21682168
}
@@ -2190,9 +2190,9 @@ The following configurations must be defined by the implementation:
21902190
* `target_os = "..."`. Operating system of the target, examples include
21912191
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"`,
21922192
`"bitrig"` or `"openbsd"`.
2193-
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
2194-
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
2195-
pointers.
2193+
* `target_pointer_width = "..."`. Target pointer width in bits. This is set
2194+
to `"32"` for targets with 32-bit pointers, and likewise set to `"64"` for
2195+
64-bit pointers.
21962196
* `unix`. See `target_family`.
21972197
* `windows`. See `target_family`.
21982198

0 commit comments

Comments
 (0)