File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -948,11 +948,11 @@ struct ShouldMerge {
948
948
/// reports an error.
949
949
fn parse_merge ( matches : & getopts:: Matches ) -> Result < ShouldMerge , & ' static str > {
950
950
match matches. opt_str ( "merge" ) . as_deref ( ) {
951
- // default = auto
951
+ // default = read-write
952
952
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 } ) ,
954
954
Some ( "none" ) => Ok ( ShouldMerge { read_rendered_cci : false , write_rendered_cci : false } ) ,
955
955
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`" ) ,
957
957
}
958
958
}
Original file line number Diff line number Diff line change @@ -608,10 +608,10 @@ fn opts() -> Vec<RustcOptGroup> {
608
608
"" ,
609
609
"merge" ,
610
610
"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)
612
612
none = do not write new versions of these files
613
613
write-only = overwrite these files without reading previous content" ,
614
- "auto |none|write-only" ,
614
+ "read-write |none|write-only" ,
615
615
)
616
616
} ) ,
617
617
unstable( "include-info-json" , |o| {
You can’t perform that action at this time.
0 commit comments