Skip to content

Commit d1b357e

Browse files
committed
doc: Clarify write::Error::IllegalCharacter description
The description contains a literal `\n` sequence, which seems to be for clarification or to facilitate searching for that sequence, but it was originally just concatenated to the end of the message. This parenthesizes it instead.
1 parent 01bd76d commit d1b357e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-ref/src/store/file/log/line.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod write {
2020
#[derive(Debug, thiserror::Error)]
2121
#[allow(missing_docs)]
2222
enum Error {
23-
#[error(r"Messages must not contain newlines\n")]
23+
#[error(r"Messages must not contain newlines (\n)")]
2424
IllegalCharacter,
2525
}
2626

0 commit comments

Comments
 (0)