Skip to content

Commit 0ff5dd2

Browse files
committed
doc: --field-match-separator's default value is ':'
The docs were out of sync with the implementation. Likely a copy-and-paste error. Fixes BurntSushi#1939
1 parent 3c78193 commit 0ff5dd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/core/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ fn flag_field_context_separator(args: &mut Vec<RGArg>) {
12421242
Set the field context separator, which is used to delimit file paths, line
12431243
numbers, columns and the context itself, when printing contextual lines. The
12441244
separator may be any number of bytes, including zero. Escape sequences like
1245-
\\x7F or \\t may be used. The default value is -.
1245+
\\x7F or \\t may be used. The '-' character is the default value.
12461246
"
12471247
);
12481248
let arg = RGArg::flag("field-context-separator", "SEPARATOR")
@@ -1257,8 +1257,8 @@ fn flag_field_match_separator(args: &mut Vec<RGArg>) {
12571257
"\
12581258
Set the field match separator, which is used to delimit file paths, line
12591259
numbers, columns and the match itself. The separator may be any number of
1260-
bytes, including zero. Escape sequences like \\x7F or \\t may be used. The
1261-
default value is -.
1260+
bytes, including zero. Escape sequences like \\x7F or \\t may be used. The ':'
1261+
character is the default value.
12621262
"
12631263
);
12641264
let arg = RGArg::flag("field-match-separator", "SEPARATOR")

0 commit comments

Comments
 (0)