Skip to content

Commit

Permalink
Correct Zack Corr's email in AUTHORS.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
z0w0 authored and graydon committed Feb 16, 2013
1 parent 787ddb4 commit 2192d11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AUTHORS.txt
Expand Up @@ -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>
12 changes: 6 additions & 6 deletions src/libcore/semver.rs → src/libstd/semver.rs
Expand Up @@ -51,7 +51,7 @@ impl Version: cmp::Ord {
},
None => false
})
}
}
#[inline(always)]
pure fn le(&self, other: &Version) -> bool {
self.major <= other.major ||
Expand Down Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 2192d11

Please sign in to comment.