@@ -331,7 +331,7 @@ fn should_write_full_path_to_mod() {
331331 assert str:: contains ( markdown, ~"# Module `a:: b:: c`") ;
332332}
333333
334- fn write_oldcommon (
334+ fn write_common (
335335 ctxt : & Ctxt ,
336336 desc : Option < ~str > ,
337337 sections : & [ doc:: Section ]
@@ -380,7 +380,7 @@ fn write_mod_contents(
380380 ctxt : & Ctxt ,
381381 doc : doc:: ModDoc
382382) {
383- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
383+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
384384 if doc. index . is_some ( ) {
385385 write_index ( ctxt, ( & doc. index ) . get ( ) ) ;
386386 }
@@ -483,7 +483,7 @@ fn should_write_index_for_foreign_mods() {
483483}
484484
485485fn write_nmod ( ctxt : & Ctxt , doc : doc:: NmodDoc ) {
486- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
486+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
487487 if doc. index . is_some ( ) {
488488 write_index ( ctxt, ( & doc. index ) . get ( ) ) ;
489489 }
@@ -534,7 +534,7 @@ fn write_fnlike(
534534 sections : & [ doc:: Section ]
535535) {
536536 write_sig ( ctxt, sig) ;
537- write_oldcommon ( ctxt, desc, sections) ;
537+ write_common ( ctxt, desc, sections) ;
538538}
539539
540540fn write_sig ( ctxt : & Ctxt , sig : Option < ~str > ) {
@@ -603,7 +603,7 @@ fn write_const(
603603 doc : doc:: ConstDoc
604604) {
605605 write_sig ( ctxt, copy doc. sig ) ;
606- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
606+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
607607}
608608
609609#[ test]
@@ -624,7 +624,7 @@ fn write_enum(
624624 ctxt : & Ctxt ,
625625 doc : doc:: EnumDoc
626626) {
627- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
627+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
628628 write_variants ( ctxt, doc. variants ) ;
629629}
630630
@@ -705,7 +705,7 @@ fn should_write_variant_list_with_signatures() {
705705}
706706
707707fn write_trait ( ctxt : & Ctxt , doc : doc:: TraitDoc ) {
708- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
708+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
709709 write_methods ( ctxt, doc. methods ) ;
710710}
711711
@@ -753,7 +753,7 @@ fn should_write_trait_method_signature() {
753753}
754754
755755fn write_impl ( ctxt : & Ctxt , doc : doc:: ImplDoc ) {
756- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
756+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
757757 write_methods ( ctxt, doc. methods ) ;
758758}
759759
@@ -795,7 +795,7 @@ fn write_type(
795795 doc : doc:: TyDoc
796796) {
797797 write_sig ( ctxt, copy doc. sig ) ;
798- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
798+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
799799}
800800
801801#[ test]
@@ -822,7 +822,7 @@ fn write_struct(
822822 doc : doc:: StructDoc
823823) {
824824 write_sig ( ctxt, copy doc. sig ) ;
825- write_oldcommon ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
825+ write_common ( ctxt, doc. desc ( ) , doc. sections ( ) ) ;
826826}
827827
828828#[ test]
0 commit comments