Skip to content

Commit 7736ed6

Browse files
committed
json tidy
1 parent c952c04 commit 7736ed6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/libstd/json.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,19 @@ pub impl Encoder: serialize::Encoder {
132132

133133
// other enums are encoded as vectors:
134134
// Kangaroo(34,"William") => ["Kangaroo",[34,"William"]]
135-
135+
136136
// the default expansion for enums is more verbose than I'd like;
137137
// specifically, the inner pair of brackets seems superfluous,
138138
// BUT the design of the enumeration framework and the requirements
139139
// of the special-case for Option mean that a first argument must
140140
// be encoded "naked"--with no commas--and that the option name
141141
// can't be followed by just a comma, because there might not
142142
// be any elements in the tuple.
143-
144-
// FIXME : this would be more precise and less frightening
143+
144+
// this would be more precise and less frightening
145145
// with fully-qualified option names. To get that information,
146-
// we'd have to change the expansion of auto-encode to pass those along.
146+
// we'd have to change the expansion of auto-encode to pass
147+
// those along.
147148

148149
if (name == ~"Some") {
149150
f();
@@ -170,6 +171,7 @@ pub impl Encoder: serialize::Encoder {
170171
f();
171172
self.wr.write_char(']');
172173
}
174+
173175
fn emit_owned_vec(&self, len: uint, f: fn()) {
174176
self.emit_borrowed_vec(len, f)
175177
}

0 commit comments

Comments
 (0)