Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format std::env::consts docstrings with markdown backticks #128535

Merged
merged 3 commits into from
Sep 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Refer to other docs
mmvanheusden committed Aug 16, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 0328c86996842a2f69b3ea83eaa83e76a1c0e837
26 changes: 3 additions & 23 deletions library/std/src/env.rs
Original file line number Diff line number Diff line change
@@ -983,6 +983,7 @@ pub mod consts {
/// * `"unix"`
/// * `"windows"`
/// * `"itron"`
/// * `"wasm"`
/// * `""`
///
/// </details>
@@ -1041,18 +1042,7 @@ pub mod consts {
/// Specifies the filename suffix, if any, used for shared libraries on this platform.
/// An example value may be: `".so"`, `".elf"`, or `".dll"`.
///
/// <details><summary>Full list of possible values</summary>
///
/// * `".so"`
/// * `".dylib"`
/// * `".dll"`
/// * `".sgxs"`
/// * `".a"`
/// * `".elf"`
/// * `".wasm"`
/// * `""` (an empty string)
///
/// </details>
/// The possible values are identical to those of [`DLL_EXTENSION`], but with the leading period included.
#[stable(feature = "env", since = "1.0.0")]
pub const DLL_SUFFIX: &str = os::DLL_SUFFIX;

@@ -1077,17 +1067,7 @@ pub mod consts {
/// Specifies the filename suffix, if any, used for executable binaries on this platform.
/// An example value may be: `".exe"`, or `".efi"`.
///
/// <details><summary>Full list of possible values</summary>
///
/// * `".exe"`
/// * `".efi"`
/// * `".js"`
/// * `".sgxs"`
/// * `".elf"`
/// * `".wasm"`
/// * `""` (an empty string)
///
/// </details>
/// The possible values are identical to those of [`EXE_EXTENSION`], but with the leading period included.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// The possible values are identical to those of [`EXE_EXTENSION`], but with the leading period included.
/// The possible values are identical to those of [`EXE_EXTENSION`], but with the leading period included
/// if `EXE_EXTENSION` is not `""`.

#[stable(feature = "env", since = "1.0.0")]
pub const EXE_SUFFIX: &str = os::EXE_SUFFIX;