Skip to content

Commit d6ebf21

Browse files
authored
Rollup merge of #70145 - lzutao:patch-1, r=Dylan-DPC
doc: Add quote to .init_array The current formatting is not good without quotes: ![without-quote](https://i.imgur.com/RkIm4cr.png)
2 parents 8615a36 + 2c38ecf commit d6ebf21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/env.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,8 @@ pub struct ArgsOs {
723723
/// (such as `*` and `?`). On Windows this is not done, and such arguments are
724724
/// passed as-is.
725725
///
726-
/// On glibc Linux, arguments are retrieved by placing a function in .init_array.
727-
/// glibc passes argc, argv, and envp to functions in .init_array, as a non-standard extension.
726+
/// On glibc Linux systems, arguments are retrieved by placing a function in ".init_array".
727+
/// Glibc passes argc, argv, and envp to functions in ".init_array", as a non-standard extension.
728728
/// This allows `std::env::args` to work even in a `cdylib` or `staticlib`, as it does on macOS
729729
/// and Windows.
730730
///
@@ -758,8 +758,8 @@ pub fn args() -> Args {
758758
/// set to arbitrary text, and it may not even exist, so this property should
759759
/// not be relied upon for security purposes.
760760
///
761-
/// On glibc Linux, arguments are retrieved by placing a function in .init_array.
762-
/// glibc passes argc, argv, and envp to functions in .init_array, as a non-standard extension.
761+
/// On glibc Linux systems, arguments are retrieved by placing a function in ".init_array".
762+
/// Glibc passes argc, argv, and envp to functions in ".init_array", as a non-standard extension.
763763
/// This allows `std::env::args` to work even in a `cdylib` or `staticlib`, as it does on macOS
764764
/// and Windows.
765765
///

0 commit comments

Comments
 (0)