Correct Zack Corr's email in AUTHORS.txt

This commit is contained in:
Zack Corr 2013-01-23 19:20:51 +10:00 committed by Graydon Hoare
parent 787ddb4b7c
commit 2192d11cd1
2 changed files with 7 additions and 7 deletions

View File

@ -161,4 +161,4 @@ Wade Mealing <wmealing@gmail.com>
William Ting <william.h.ting@gmail.com>
Yasuhiro Fujii <y-fujii@mimosa-pudica.net>
Youngsoo Son <ysson83@gmail.com>
Zack Corr <zackcorr95@gmail.com>
Zack Corr <zack@z0w0.me>

View File

@ -51,7 +51,7 @@ impl Version: cmp::Ord {
},
None => false
})
}
}
#[inline(always)]
pure fn le(&self, other: &Version) -> bool {
self.major <= other.major ||
@ -173,7 +173,7 @@ fn parse_reader(rdr: io::Reader) -> Option<(Version, char)> {
ch))
}
pub fn parse(s: ~str) -> Option<Version> {
pub fn parse(s: &str) -> Option<Version> {
do io::with_str_reader(s) |rdr| {
do parse_reader(rdr).chain_ref |&item| {
let (version, ch) = item;
@ -200,25 +200,25 @@ fn test_parse() {
assert parse("a.b.c") == None;
assert parse("1.2.3 abc") == None;
assert parse("1.2.3") == Some({
assert parse("1.2.3") == Some(Version {
major: 1u,
minor: 2u,
patch: 3u,
tag: None,
});
assert parse(" 1.2.3 ") == Some({
assert parse(" 1.2.3 ") == Some(Version {
major: 1u,
minor: 2u,
patch: 3u,
tag: None,
});
assert parse("1.2.3-alpha1") == Some({
assert parse("1.2.3-alpha1") == Some(Version {
major: 1u,
minor: 2u,
patch: 3u,
tag: Some("alpha1")
});
assert parse(" 1.2.3-alpha1 ") == Some({
assert parse(" 1.2.3-alpha1 ") == Some(Version {
major: 1u,
minor: 2u,
patch: 3u,