We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10937b0 + d731a1c commit 6065af5Copy full SHA for 6065af5
gix-quote/src/single.rs
@@ -2,8 +2,8 @@ use bstr::{BStr, BString, ByteSlice, ByteVec};
2
3
/// Transforms the given `value` to be suitable for use as an argument for Bourne shells by wrapping it into single quotes.
4
///
5
-/// Every single-quote `'` is escaped with `\'`, every exclamation mark `!` is escaped with `\!`, and the entire string is enclosed
6
-/// in single quotes.
+/// Every single-quote `'` is escaped as `'\''`, every exclamation mark `!` is escaped as `'\!'`,
+/// and the entire string is enclosed in single quotes.
7
pub fn single(mut value: &BStr) -> BString {
8
let mut quoted = BString::new(b"'".to_vec());
9
0 commit comments