Skip to content

Commit 7468ee1

Browse files
authored
Change wording
1 parent 73b5f3c commit 7468ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/env.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,8 @@ pub fn args() -> Args {
751751
/// extension. This allows `std::env::args_os` to work even in a `cdylib` or `staticlib`, as it
752752
/// does on macOS and Windows.
753753
///
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,
754+
/// Note that the returned iterator will not check if the arguments to the
755+
/// process are valid Unicode. To ensure UTF-8 validity,
756756
/// use the [`args`] function instead.
757757
///
758758
/// # Examples

0 commit comments

Comments
 (0)