Skip to content

Commit 90cc9ae

Browse files
committed
---
yaml --- r: 139370 b: refs/heads/try2 c: 89fc958 h: refs/heads/master v: v3
1 parent 0a5a4da commit 90cc9ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: b290863be6fa40f0e4f91ba91ff8c5eeb08c6524
8+
refs/heads/try2: 89fc95885fa01621031e678e59bae54472141d0f
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/serialize.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,12 @@ impl<D:Decoder,T:Decodable<D>> Decodable<D> for @[T] {
368368

369369
impl<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", 0u, 0u) {
373+
None => do s.emit_enum_variant(~"None", 0u, 0u) {
374374
},
375375

376-
Some(ref v) => do s.emit_enum_variant(~"some", 1u, 1u) {
376+
Some(ref v) => do s.emit_enum_variant(~"Some", 1u, 1u) {
377377
s.emit_enum_variant_arg(0u, || v.encode(s))
378378
}
379379
}
@@ -383,7 +383,7 @@ impl<S:Encoder,T:Encodable<S>> Encodable<S> for Option<T> {
383383

384384
impl<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,

0 commit comments

Comments
 (0)