Skip to content

Commit 1e29e78

Browse files
committed
rust: str: fix comment style
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent d44b7fb commit 1e29e78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl fmt::Debug for CStr {
249249
/// let s = CString::try_from_fmt(fmt!("{:?}", penguin)).unwrap();
250250
/// assert_eq!(s.as_bytes_with_nul(), "\"\\xf0\\x9f\\x90\\xa7\"\0".as_bytes());
251251
///
252-
/// // embedded double quotes are escaped
252+
/// // Embedded double quotes are escaped.
253253
/// let ascii = c_str!("so \"cool\"");
254254
/// let s = CString::try_from_fmt(fmt!("{:?}", ascii)).unwrap();
255255
/// assert_eq!(s.as_bytes_with_nul(), "\"so \\\"cool\\\"\"\0".as_bytes());

0 commit comments

Comments
 (0)