Skip to content

Commit 42201fa

Browse files
committed
--merge=auto -> --merge=read-write
1 parent 12af7e6 commit 42201fa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustdoc/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,11 +948,11 @@ struct ShouldMerge {
948948
/// reports an error.
949949
fn parse_merge(matches: &getopts::Matches) -> Result<ShouldMerge, &'static str> {
950950
match matches.opt_str("merge").as_deref() {
951-
// default = auto
951+
// default = read-write
952952
None => Ok(ShouldMerge { read_rendered_cci: true, write_rendered_cci: true }),
953-
Some("auto") => Ok(ShouldMerge { read_rendered_cci: true, write_rendered_cci: true }),
953+
Some("read-write") => Ok(ShouldMerge { read_rendered_cci: true, write_rendered_cci: true }),
954954
Some("none") => Ok(ShouldMerge { read_rendered_cci: false, write_rendered_cci: false }),
955955
Some("write-only") => Ok(ShouldMerge { read_rendered_cci: false, write_rendered_cci: true }),
956-
Some(_) => Err("argument to --merge must be `auto`, `none`, or `write-only`"),
956+
Some(_) => Err("argument to --merge must be `read-write`, `none`, or `write-only`"),
957957
}
958958
}

src/librustdoc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,10 @@ fn opts() -> Vec<RustcOptGroup> {
608608
"",
609609
"merge",
610610
"Controls how rustdoc handles files from previously documented crates in the doc root.
611-
auto = append (default)
611+
read-write = append to the existing files (default)
612612
none = do not write new versions of these files
613613
write-only = overwrite these files without reading previous content",
614-
"auto|none|write-only",
614+
"read-write|none|write-only",
615615
)
616616
}),
617617
unstable("include-info-json", |o| {

0 commit comments

Comments
 (0)