@@ -331,7 +331,7 @@ fn should_write_full_path_to_mod() {
331
331
assert str:: contains ( markdown, ~"# Module `a:: b:: c`") ;
332
332
}
333
333
334
- fn write_oldcommon (
334
+ fn write_common (
335
335
ctxt : & Ctxt ,
336
336
desc : Option < ~str > ,
337
337
sections : & [ doc:: Section ]
@@ -380,7 +380,7 @@ fn write_mod_contents(
380
380
ctxt : & Ctxt ,
381
381
doc : doc:: ModDoc
382
382
) {
383
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
383
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
384
384
if doc. index . is_some ( ) {
385
385
write_index ( ctxt, ( & doc. index ) . get ( ) ) ;
386
386
}
@@ -483,7 +483,7 @@ fn should_write_index_for_foreign_mods() {
483
483
}
484
484
485
485
fn write_nmod ( ctxt : & Ctxt , doc : doc:: NmodDoc ) {
486
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
486
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
487
487
if doc. index . is_some ( ) {
488
488
write_index ( ctxt, ( & doc. index ) . get ( ) ) ;
489
489
}
@@ -534,7 +534,7 @@ fn write_fnlike(
534
534
sections : & [ doc:: Section ]
535
535
) {
536
536
write_sig ( ctxt, sig) ;
537
- write_oldcommon ( ctxt, desc, sections) ;
537
+ write_common ( ctxt, desc, sections) ;
538
538
}
539
539
540
540
fn write_sig ( ctxt : & Ctxt , sig : Option < ~str > ) {
@@ -603,7 +603,7 @@ fn write_const(
603
603
doc : doc:: ConstDoc
604
604
) {
605
605
write_sig ( ctxt, copy doc. sig ) ;
606
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
606
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
607
607
}
608
608
609
609
#[ test]
@@ -624,7 +624,7 @@ fn write_enum(
624
624
ctxt : & Ctxt ,
625
625
doc : doc:: EnumDoc
626
626
) {
627
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
627
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
628
628
write_variants ( ctxt, doc. variants ) ;
629
629
}
630
630
@@ -705,7 +705,7 @@ fn should_write_variant_list_with_signatures() {
705
705
}
706
706
707
707
fn write_trait ( ctxt : & Ctxt , doc : doc:: TraitDoc ) {
708
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
708
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
709
709
write_methods ( ctxt, doc. methods ) ;
710
710
}
711
711
@@ -753,7 +753,7 @@ fn should_write_trait_method_signature() {
753
753
}
754
754
755
755
fn write_impl ( ctxt : & Ctxt , doc : doc:: ImplDoc ) {
756
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
756
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
757
757
write_methods ( ctxt, doc. methods ) ;
758
758
}
759
759
@@ -795,7 +795,7 @@ fn write_type(
795
795
doc : doc:: TyDoc
796
796
) {
797
797
write_sig ( ctxt, copy doc. sig ) ;
798
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
798
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
799
799
}
800
800
801
801
#[ test]
@@ -822,7 +822,7 @@ fn write_struct(
822
822
doc : doc:: StructDoc
823
823
) {
824
824
write_sig ( ctxt, copy doc. sig ) ;
825
- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
825
+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
826
826
}
827
827
828
828
#[ test]
0 commit comments