Skip to content

Commit

Permalink
Format std::env::consts docstrings
Browse files Browse the repository at this point in the history
This clarifies possible outputs the constants might be.
  • Loading branch information
mmvanheusden committed Aug 15, 2024
1 parent 026e9ed commit 8c91a7e
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions library/std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,29 +949,29 @@ pub mod consts {
///
/// Some possible values:
///
/// - x86
/// - x86_64
/// - arm
/// - aarch64
/// - loongarch64
/// - m68k
/// - csky
/// - mips
/// - mips64
/// - powerpc
/// - powerpc64
/// - riscv64
/// - s390x
/// - sparc64
/// - `x86`
/// - `x86_64`
/// - `arm`
/// - `aarch64`
/// - `loongarch64`
/// - `m68k`
/// - `csky`
/// - `mips`
/// - `mips64`
/// - `powerpc`
/// - `powerpc64`
/// - `riscv64`
/// - `s390x`
/// - `sparc64`
#[stable(feature = "env", since = "1.0.0")]
pub const ARCH: &str = env!("STD_ENV_ARCH");

/// The family of the operating system. Example value is `unix`.
///
/// Some possible values:
///
/// - unix
/// - windows
/// - `unix`
/// - `windows`
#[stable(feature = "env", since = "1.0.0")]
pub const FAMILY: &str = os::FAMILY;

Expand All @@ -980,16 +980,16 @@ pub mod consts {
///
/// Some possible values:
///
/// - linux
/// - macos
/// - ios
/// - freebsd
/// - dragonfly
/// - netbsd
/// - openbsd
/// - solaris
/// - android
/// - windows
/// - `linux`
/// - `macos`
/// - `ios`
/// - `freebsd`
/// - `dragonfly`
/// - `netbsd`
/// - `openbsd`
/// - `solaris`
/// - `android`
/// - `windows`
#[stable(feature = "env", since = "1.0.0")]
pub const OS: &str = os::OS;

Expand All @@ -998,7 +998,7 @@ pub mod consts {
///
/// Some possible values:
///
/// - lib
/// - `lib`
/// - `""` (an empty string)
#[stable(feature = "env", since = "1.0.0")]
pub const DLL_PREFIX: &str = os::DLL_PREFIX;
Expand All @@ -1008,9 +1008,9 @@ pub mod consts {
///
/// Some possible values:
///
/// - .so
/// - .dylib
/// - .dll
/// - `.so`
/// - `.dylib`
/// - `.dll`
#[stable(feature = "env", since = "1.0.0")]
pub const DLL_SUFFIX: &str = os::DLL_SUFFIX;

Expand All @@ -1019,9 +1019,9 @@ pub mod consts {
///
/// Some possible values:
///
/// - so
/// - dylib
/// - dll
/// - `so`
/// - `dylib`
/// - `dll`
#[stable(feature = "env", since = "1.0.0")]
pub const DLL_EXTENSION: &str = os::DLL_EXTENSION;

Expand All @@ -1030,9 +1030,9 @@ pub mod consts {
///
/// Some possible values:
///
/// - .exe
/// - .nexe
/// - .pexe
/// - `.exe`
/// - `.nexe`
/// - `.pexe`
/// - `""` (an empty string)
#[stable(feature = "env", since = "1.0.0")]
pub const EXE_SUFFIX: &str = os::EXE_SUFFIX;
Expand All @@ -1042,7 +1042,7 @@ pub mod consts {
///
/// Some possible values:
///
/// - exe
/// - `exe`
/// - `""` (an empty string)
#[stable(feature = "env", since = "1.0.0")]
pub const EXE_EXTENSION: &str = os::EXE_EXTENSION;
Expand Down

0 comments on commit 8c91a7e

Please sign in to comment.