Skip to content

Commit 2192d11

Browse files
z0w0graydon
authored andcommitted
Correct Zack Corr's email in AUTHORS.txt
1 parent 787ddb4 commit 2192d11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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]>

src/libcore/semver.rs renamed to 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)