Skip to content

Commit 8f463ea

Browse files
committed
doc: make env::consts summaries less confusing
1 parent f075698 commit 8f463ea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libstd/env.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ pub mod consts {
618618
#[stable(feature = "env", since = "1.0.0")]
619619
pub const ARCH: &'static str = super::arch::ARCH;
620620

621-
/// The family of the operating system. In this case, `unix`.
621+
/// The family of the operating system. Example value is `unix`.
622622
///
623623
/// Some possible values:
624624
///
@@ -627,8 +627,8 @@ pub mod consts {
627627
#[stable(feature = "env", since = "1.0.0")]
628628
pub const FAMILY: &'static str = super::os::FAMILY;
629629

630-
/// A string describing the specific operating system in use: in this
631-
/// case, `linux`.
630+
/// A string describing the specific operating system in use.
631+
/// Example value is `linux`.
632632
///
633633
/// Some possible values:
634634
///
@@ -647,7 +647,7 @@ pub mod consts {
647647
pub const OS: &'static str = super::os::OS;
648648

649649
/// Specifies the filename prefix used for shared libraries on this
650-
/// platform: in this case, `lib`.
650+
/// platform. Example value is `lib`.
651651
///
652652
/// Some possible values:
653653
///
@@ -657,7 +657,7 @@ pub mod consts {
657657
pub const DLL_PREFIX: &'static str = super::os::DLL_PREFIX;
658658

659659
/// Specifies the filename suffix used for shared libraries on this
660-
/// platform: in this case, `.so`.
660+
/// platform. Example value is `.so`.
661661
///
662662
/// Some possible values:
663663
///
@@ -668,7 +668,7 @@ pub mod consts {
668668
pub const DLL_SUFFIX: &'static str = super::os::DLL_SUFFIX;
669669

670670
/// Specifies the file extension used for shared libraries on this
671-
/// platform that goes after the dot: in this case, `so`.
671+
/// platform that goes after the dot. Example value is `so`.
672672
///
673673
/// Some possible values:
674674
///
@@ -679,7 +679,7 @@ pub mod consts {
679679
pub const DLL_EXTENSION: &'static str = super::os::DLL_EXTENSION;
680680

681681
/// Specifies the filename suffix used for executable binaries on this
682-
/// platform: in this case, the empty string.
682+
/// platform. Example value is `.exe`.
683683
///
684684
/// Some possible values:
685685
///
@@ -691,7 +691,7 @@ pub mod consts {
691691
pub const EXE_SUFFIX: &'static str = super::os::EXE_SUFFIX;
692692

693693
/// Specifies the file extension, if any, used for executable binaries
694-
/// on this platform: in this case, the empty string.
694+
/// on this platform. Example value is `exe`.
695695
///
696696
/// Some possible values:
697697
///

0 commit comments

Comments
 (0)