File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1077,18 +1077,7 @@ impl Attributes {
1077
1077
/// Finds the `doc` attribute as a NameValue and returns the corresponding
1078
1078
/// value found.
1079
1079
crate fn doc_value ( & self ) -> Option < String > {
1080
- let mut iter = self . doc_strings . iter ( ) ;
1081
-
1082
- let ori = iter. next ( ) ?;
1083
- let mut out = String :: new ( ) ;
1084
- add_doc_fragment ( & mut out, ori) ;
1085
- for new_frag in iter {
1086
- if new_frag. kind != ori. kind || new_frag. parent_module != ori. parent_module {
1087
- break ;
1088
- }
1089
- add_doc_fragment ( & mut out, new_frag) ;
1090
- }
1091
- if out. is_empty ( ) { None } else { Some ( out) }
1080
+ self . collapsed_doc_value ( )
1092
1081
}
1093
1082
1094
1083
/// Return the doc-comments on this item, grouped by the module they came from.
You can’t perform that action at this time.
0 commit comments