Skip to content

Commit 438c3eb

Browse files
committed
wording
1 parent 2a03f36 commit 438c3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/future-proofing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ on the data structure.
209209
Some libraries need to use, or want to experiment with, the [nightly channel].
210210
To avoid accidental breakage, libraries should either:
211211
- Use nightly features unconditionally, so that people depending on the library must always use a nightly toolchain to build
212-
- Add a `--cfg` flag which opts-in to the nightly features (optionally, with feature detection to verify the features are present in the current compiler version). This allows people to avoid opting-in if they do not want to be exposed to possible breakage.
212+
- Add a `--cfg` flag which opts-in to the nightly features (optionally, with a test compilation to give a better error message if the feature is not present in the current compiler version). This allows people to avoid opting-in if they do not want to be exposed to possible breakage.
213213

214214
Each nightly feature should be under a separate flag so that breakage to one feature does not cause breakage for others.
215215
Each flag should be prefixed with the crate name to avoid accidentally triggering features in other crates.

0 commit comments

Comments
 (0)