Apply suggestions from code review

Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
This commit is contained in:
Matyáš Racek 2020-10-31 17:28:44 +01:00 committed by GitHub
parent d417bbef95
commit db416b232c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -557,8 +557,10 @@ impl Command {
/// ///
/// [`args`]: Command::args /// [`args`]: Command::args
/// ///
/// Note that the argument is passed to the program directly as is, so you shouldn't wrap it in quotes /// Note that the argument is not passed through a shell, but given
/// or escape special characters the same way you would do that when running the program from terminal. /// literally to the program. This means that shell syntax like quotes,
/// escaped characters, word splitting, glob patterns, substitution, etc.
/// have no effect.
/// ///
/// # Examples /// # Examples
/// ///
@ -585,8 +587,10 @@ impl Command {
/// ///
/// [`arg`]: Command::arg /// [`arg`]: Command::arg
/// ///
/// Note that each argument is passed to the program directly as is, so you shouldn't wrap it in quotes /// Note that the arguments are not passed through a shell, but given
/// or escape special characters the same way you would do that when running the program from terminal directly. /// literally to the program. This means that shell syntax like quotes,
/// escaped characters, word splitting, glob patterns, substitution, etc.
/// have no effect.
/// ///
/// # Examples /// # Examples
/// ///