From dff33a0edbb7f406652047a0e689c23cdcc14167 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 30 May 2021 11:59:16 -0500 Subject: [PATCH] refactor/wc ~ polish spelling (comments, names, and exceptions) --- src/uu/wc/src/wc.rs | 6 ++---- src/uu/wc/src/{wordcount.rs => word_count.rs} | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) rename src/uu/wc/src/{wordcount.rs => word_count.rs} (98%) diff --git a/src/uu/wc/src/wc.rs b/src/uu/wc/src/wc.rs index 6e95254ee..d990c6679 100644 --- a/src/uu/wc/src/wc.rs +++ b/src/uu/wc/src/wc.rs @@ -5,17 +5,15 @@ // * For the full copyright and license information, please view the LICENSE // * file that was distributed with this source code. -// spell-checker:ignore (ToDO) fpath - #[macro_use] extern crate uucore; mod count_bytes; mod countable; -mod wordcount; +mod word_count; use count_bytes::count_bytes_fast; use countable::WordCountable; -use wordcount::{TitledWordCount, WordCount}; +use word_count::{TitledWordCount, WordCount}; use clap::{App, Arg, ArgMatches}; use thiserror::Error; diff --git a/src/uu/wc/src/wordcount.rs b/src/uu/wc/src/word_count.rs similarity index 98% rename from src/uu/wc/src/wordcount.rs rename to src/uu/wc/src/word_count.rs index 9e2a81fca..bdb510f58 100644 --- a/src/uu/wc/src/wordcount.rs +++ b/src/uu/wc/src/word_count.rs @@ -123,7 +123,7 @@ impl WordCount { /// This struct supplements the actual word count with an optional title that is /// displayed to the user at the end of the program. /// The reason we don't simply include title in the `WordCount` struct is that -/// it would result in unneccesary copying of `String`. +/// it would result in unnecessary copying of `String`. #[derive(Debug, Default, Clone)] pub struct TitledWordCount<'a> { pub title: Option<&'a str>,