diff options
| author | Teddy Wing | 2018-10-23 16:04:54 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-10-23 16:04:54 +0200 | 
| commit | cf3fcb90e1f1d3f4e5a52ead3987737d144b508c (patch) | |
| tree | 74e6f1fe7ae9e9e43599b89ce669595558ebd759 /src/trial.rs | |
| parent | eb970dc9f199acaa003abd517fbdc736563021e8 (diff) | |
| download | dome-key-map-cf3fcb90e1f1d3f4e5a52ead3987737d144b508c.tar.bz2 | |
print_trial_days(): Add a real output message
Plus a little dumb pluralisation.
Diffstat (limited to 'src/trial.rs')
| -rw-r--r-- | src/trial.rs | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/src/trial.rs b/src/trial.rs index 0d94108..56866ec 100644 --- a/src/trial.rs +++ b/src/trial.rs @@ -106,8 +106,11 @@ fn get_trial_start() -> Result<DateTime<FixedOffset>> {  }  fn print_trial_days(days: u8) { -    // TODO: Come up with a label -    println!("{}", days); +    if days == 1 { +        println!("{} trial day remaining", days); +    } else { +        println!("{} trial days remaining", days); +    }  }  fn days_remaining( | 
