diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-20 13:24:09 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-20 13:54:25 -0700 |
| commit | 9c4d804cfe421d9a48ba2f0c6d12b7c654e75964 (patch) | |
| tree | f8450f0cf9fe18b082df59105e5b25c2724410c5 /src/libstd | |
| parent | 0847d52a8677a39525b7cf7a09571851b6deb8b9 (diff) | |
| download | rust-9c4d804cfe421d9a48ba2f0c6d12b7c654e75964.tar.gz rust-9c4d804cfe421d9a48ba2f0c6d12b7c654e75964.zip | |
libsyntax: Never use `::<>` in the type grammar
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/time.rs b/src/libstd/time.rs index d768eef9a8c..c72b3675c4c 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -819,8 +819,8 @@ priv fn do_strftime(format: &str, tm: &Tm) -> ~str { 'M' => fmt!("%02d", tm.tm_min as int), 'm' => fmt!("%02d", tm.tm_mon as int + 1), 'n' => ~"\n", - 'P' => if tm.tm_hour as int < 12 { ~"am" } else { ~"pm" }, - 'p' => if tm.tm_hour as int < 12 { ~"AM" } else { ~"PM" }, + 'P' => if (tm.tm_hour as int) < 12 { ~"am" } else { ~"pm" }, + 'p' => if (tm.tm_hour as int) < 12 { ~"AM" } else { ~"PM" }, 'R' => { fmt!("%s:%s", parse_type('H', tm), |
