Skip to content

Commit b2c598a

Browse files
z0w0graydon
authored andcommitted
---
yaml --- r: 44519 b: refs/heads/master c: 2192d11 h: refs/heads/master i: 44517: 6363fca 44515: 0040b2e 44511: 10cce4a v: v3
1 parent 1863b55 commit b2c598a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 787ddb4b7cc15178f5fb7b93d7b5f8fdbae7a584
2+
refs/heads/master: 2192d11cd197a983f3ceb58aad98786c1b9f890d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ Wade Mealing <[email protected]>
161161
William Ting <[email protected]>
162162
Yasuhiro Fujii <[email protected]>
163163
Youngsoo Son <[email protected]>
164-
Zack Corr <[email protected]>
164+
Zack Corr <[email protected]>

trunk/src/libcore/semver.rs renamed to trunk/src/libstd/semver.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Version: cmp::Ord {
5151
},
5252
None => false
5353
})
54-
}
54+
}
5555
#[inline(always)]
5656
pure fn le(&self, other: &Version) -> bool {
5757
self.major <= other.major ||
@@ -173,7 +173,7 @@ fn parse_reader(rdr: io::Reader) -> Option<(Version, char)> {
173173
ch))
174174
}
175175

176-
pub fn parse(s: ~str) -> Option<Version> {
176+
pub fn parse(s: &str) -> Option<Version> {
177177
do io::with_str_reader(s) |rdr| {
178178
do parse_reader(rdr).chain_ref |&item| {
179179
let (version, ch) = item;
@@ -200,25 +200,25 @@ fn test_parse() {
200200
assert parse("a.b.c") == None;
201201
assert parse("1.2.3 abc") == None;
202202

203-
assert parse("1.2.3") == Some({
203+
assert parse("1.2.3") == Some(Version {
204204
major: 1u,
205205
minor: 2u,
206206
patch: 3u,
207207
tag: None,
208208
});
209-
assert parse(" 1.2.3 ") == Some({
209+
assert parse(" 1.2.3 ") == Some(Version {
210210
major: 1u,
211211
minor: 2u,
212212
patch: 3u,
213213
tag: None,
214214
});
215-
assert parse("1.2.3-alpha1") == Some({
215+
assert parse("1.2.3-alpha1") == Some(Version {
216216
major: 1u,
217217
minor: 2u,
218218
patch: 3u,
219219
tag: Some("alpha1")
220220
});
221-
assert parse(" 1.2.3-alpha1 ") == Some({
221+
assert parse(" 1.2.3-alpha1 ") == Some(Version {
222222
major: 1u,
223223
minor: 2u,
224224
patch: 3u,

0 commit comments

Comments
 (0)