refactor/wc ~ polish spelling (comments, names, and exceptions)

This commit is contained in:
Roy Ivy III 2021-05-30 11:59:16 -05:00
parent 3d42454ebc
commit dff33a0edb
2 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -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>,