Skip to content

Commit 9d79e59

Browse files
committed
Align no_std intro language better and reword
We had said here that the `no_std` attribute is used to "prevent the automatic linking of the std crate", but then further down we say, "using `no_std` does not prevent the standard library from being linked in". The important distinction here is the word "automatically", but that gets a bit lost due to reusing the "prevent" phrasing. Probably "prevent" is just too strong a word to use when what we're really saying is that we're causing something to not happen automatically. Let's make that more clear and increase sentence parallelism.
1 parent 97ea130 commit 9d79e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/names/preludes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ r[names.preludes.extern.no_std]
8181
### The `no_std` attribute
8282
8383
r[names.preludes.extern.no_std.intro]
84-
The *`no_std` [attribute][attributes]* is used to prevent the automatic linking of the [`std`] crate, deferring to [`core`] instead.
84+
The *`no_std` [attribute][attributes]* causes the [`std`] crate to not be linked automatically, deferring to the [`core`] crate instead.
8585
8686
> [!EXAMPLE]
8787
> <!-- ignore: test infrastructure can't handle no_std -->

0 commit comments

Comments
 (0)