@@ -37,7 +37,7 @@ pub fn mk_pass() -> Pass {
37
37
38
38
pub fn run (
39
39
_srv : astsrv:: Srv ,
40
- + doc : doc:: Doc
40
+ doc : doc:: Doc
41
41
) -> doc:: Doc {
42
42
let fold = Fold {
43
43
fold_item : fold_item,
@@ -48,7 +48,7 @@ pub fn run(
48
48
( fold. fold_doc ) ( & fold, doc)
49
49
}
50
50
51
- fn fold_item ( fold : & fold:: Fold < ( ) > , + doc : doc:: ItemDoc ) -> doc:: ItemDoc {
51
+ fn fold_item ( fold : & fold:: Fold < ( ) > , doc : doc:: ItemDoc ) -> doc:: ItemDoc {
52
52
let doc = fold:: default_seq_fold_item ( fold, doc) ;
53
53
54
54
doc:: ItemDoc {
@@ -57,7 +57,7 @@ fn fold_item(fold: &fold::Fold<()>, +doc: doc::ItemDoc) -> doc::ItemDoc {
57
57
}
58
58
}
59
59
60
- fn fold_trait ( fold : & fold:: Fold < ( ) > , + doc : doc:: TraitDoc ) -> doc:: TraitDoc {
60
+ fn fold_trait ( fold : & fold:: Fold < ( ) > , doc : doc:: TraitDoc ) -> doc:: TraitDoc {
61
61
let doc =fold:: default_seq_fold_trait ( fold, doc) ;
62
62
63
63
doc:: TraitDoc {
@@ -69,7 +69,7 @@ fn fold_trait(fold: &fold::Fold<()>, +doc: doc::TraitDoc) -> doc::TraitDoc {
69
69
}
70
70
}
71
71
72
- fn fold_impl ( fold : & fold:: Fold < ( ) > , + doc : doc:: ImplDoc ) -> doc:: ImplDoc {
72
+ fn fold_impl ( fold : & fold:: Fold < ( ) > , doc : doc:: ImplDoc ) -> doc:: ImplDoc {
73
73
let doc =fold:: default_seq_fold_impl ( fold, doc) ;
74
74
75
75
doc:: ImplDoc {
@@ -108,7 +108,7 @@ pub mod test {
108
108
use doc;
109
109
use extract;
110
110
111
- pub fn mk_doc ( + source : ~str ) -> doc:: Doc {
111
+ pub fn mk_doc ( source : ~str ) -> doc:: Doc {
112
112
do astsrv:: from_str ( copy source) |srv| {
113
113
let doc = extract:: from_srv ( srv, ~"") ;
114
114
let doc = ( attr_pass:: mk_pass ( ) . f ) ( srv, doc) ;
@@ -117,15 +117,15 @@ pub mod test {
117
117
}
118
118
}
119
119
120
- fn extract ( + desc : Option < ~str > ) -> Option < ~str > {
120
+ fn extract ( desc : Option < ~str > ) -> Option < ~str > {
121
121
if desc. is_none ( ) {
122
122
return None
123
123
}
124
124
125
125
parse_desc ( ( copy desc) . get ( ) )
126
126
}
127
127
128
- fn parse_desc ( + desc : ~str ) -> Option < ~str > {
128
+ fn parse_desc ( desc : ~str ) -> Option < ~str > {
129
129
130
130
const max_brief_len: uint = 120 u;
131
131
@@ -141,7 +141,7 @@ fn parse_desc(+desc: ~str) -> Option<~str> {
141
141
}
142
142
}
143
143
144
- fn first_sentence( + s : ~str ) -> Option < ~str > {
144
+ fn first_sentence( s : ~str ) -> Option < ~str > {
145
145
let paras = paragraphs ( copy s) ;
146
146
if !paras. is_empty ( ) {
147
147
let first_para = vec:: head ( paras) ;
@@ -151,7 +151,7 @@ fn first_sentence(+s: ~str) -> Option<~str> {
151
151
}
152
152
}
153
153
154
- fn first_sentence_(+ s: ~str) -> ~str {
154
+ fn first_sentence_(s: ~str) -> ~str {
155
155
let mut dotcount = 0;
156
156
// The index of the character following a single dot. This allows
157
157
// Things like [0..1) to appear in the brief description
@@ -182,7 +182,7 @@ fn first_sentence_(+s: ~str) -> ~str {
182
182
}
183
183
}
184
184
185
- fn paragraphs( + s: ~str) -> ~[ ~str] {
185
+ fn paragraphs( s: ~str ) -> ~[ ~str] {
186
186
let lines = str:: lines_any ( s) ;
187
187
let mut whitespace_lines = 0 ;
188
188
let mut accum = ~"";
0 commit comments