File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -368,12 +368,12 @@ impl<D:Decoder,T:Decodable<D>> Decodable<D> for @[T] {
368
368
369
369
impl < S : Encoder , T : Encodable < S > > Encodable < S > for Option < T > {
370
370
fn encode ( & self , s : & S ) {
371
- do s. emit_enum ( ~"option ") {
371
+ do s. emit_enum ( ~"Option ") {
372
372
match * self {
373
- None => do s. emit_enum_variant ( ~"none ", 0 u, 0 u) {
373
+ None => do s. emit_enum_variant ( ~"None ", 0 u, 0 u) {
374
374
} ,
375
375
376
- Some ( ref v) => do s. emit_enum_variant ( ~"some ", 1 u, 1 u) {
376
+ Some ( ref v) => do s. emit_enum_variant ( ~"Some ", 1 u, 1 u) {
377
377
s. emit_enum_variant_arg ( 0 u, || v. encode ( s) )
378
378
}
379
379
}
@@ -383,7 +383,7 @@ impl<S:Encoder,T:Encodable<S>> Encodable<S> for Option<T> {
383
383
384
384
impl < D : Decoder , T : Decodable < D > > Decodable < D > for Option < T > {
385
385
fn decode ( d : & D ) -> Option < T > {
386
- do d. read_enum ( ~"option ") {
386
+ do d. read_enum ( ~"Option ") {
387
387
do d. read_enum_variant |i| {
388
388
match i {
389
389
0 => None ,
You can’t perform that action at this time.
0 commit comments