From ad486bf5a4b64c649b2294753f971be71879a400 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Mon, 19 Aug 2024 22:31:53 +0200 Subject: [PATCH] Fix grammar in comment, tweak console output --- gitcash/src/main.rs | 4 ++-- libgitcash/src/transaction.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gitcash/src/main.rs b/gitcash/src/main.rs index ab77f9b..d559fa1 100644 --- a/gitcash/src/main.rs +++ b/gitcash/src/main.rs @@ -122,7 +122,7 @@ pub fn main() -> anyhow::Result<()> { if args.command == Command::GenerateConfig { if args.config.exists() { bail!(format!( - "❌ Config File {:?} already exists!", + "Config file {:?} already exists!", args.config.display() )); } @@ -135,7 +135,7 @@ pub fn main() -> anyhow::Result<()> { args.config.display() ) })?; - println!("💰 Wrote {:?} 🏦\n", args.config.display()); + println!("✅ Wrote example config to {:?}", args.config.display()); return Ok(()); } diff --git a/libgitcash/src/transaction.rs b/libgitcash/src/transaction.rs index 6914f3d..4dca155 100644 --- a/libgitcash/src/transaction.rs +++ b/libgitcash/src/transaction.rs @@ -46,9 +46,9 @@ pub enum AccountType { #[derive(Debug, PartialEq, Eq, PartialOrd, Hash, Clone, Deserialize, Serialize)] #[serde(try_from = "String", into = "String")] -/// An entity related to a transaction +/// An account can hold money /// -/// Can be deserialize from "{account_type}:{name}" +/// Can be deserialized from "{account_type}:{name}". pub struct Account { pub account_type: AccountType, pub name: String,