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 {
948948/// reports an error.
949949fn 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}
Original file line number Diff line number Diff 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| {
You can’t perform that action at this time.
0 commit comments