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] {
368368
369369impl < S : Encoder , T : Encodable < S > > Encodable < S > for Option < T > {
370370 fn encode ( & self , s : & S ) {
371- do s. emit_enum ( ~"option ") {
371+ do s. emit_enum ( ~"Option ") {
372372 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) {
374374 } ,
375375
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) {
377377 s. emit_enum_variant_arg ( 0 u, || v. encode ( s) )
378378 }
379379 }
@@ -383,7 +383,7 @@ impl<S:Encoder,T:Encodable<S>> Encodable<S> for Option<T> {
383383
384384impl < D : Decoder , T : Decodable < D > > Decodable < D > for Option < T > {
385385 fn decode ( d : & D ) -> Option < T > {
386- do d. read_enum ( ~"option ") {
386+ do d. read_enum ( ~"Option ") {
387387 do d. read_enum_variant |i| {
388388 match i {
389389 0 => None ,
You can’t perform that action at this time.
0 commit comments