We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22ec961 commit 82b6983Copy full SHA for 82b6983
library/std/src/env.rs
@@ -751,8 +751,8 @@ pub fn args() -> Args {
751
/// extension. This allows `std::env::args_os` to work even in a `cdylib` or `staticlib`, as it
752
/// does on macOS and Windows.
753
///
754
-/// Note that the returned iterator will not panic during iteration if any argument to the
755
-/// process is not valid Unicode. For more safety,
+/// Note that the returned iterator will not check if the arguments to the
+/// process are valid Unicode. To ensure UTF-8 validity,
756
/// use the [`args`] function instead.
757
758
/// # Examples
0 commit comments