mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
refactor/wc ~ polish spelling (comments, names, and exceptions)
This commit is contained in:
parent
3d42454ebc
commit
dff33a0edb
2 changed files with 3 additions and 5 deletions
|
@ -5,17 +5,15 @@
|
||||||
// * For the full copyright and license information, please view the LICENSE
|
// * For the full copyright and license information, please view the LICENSE
|
||||||
// * file that was distributed with this source code.
|
// * file that was distributed with this source code.
|
||||||
|
|
||||||
// spell-checker:ignore (ToDO) fpath
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate uucore;
|
extern crate uucore;
|
||||||
|
|
||||||
mod count_bytes;
|
mod count_bytes;
|
||||||
mod countable;
|
mod countable;
|
||||||
mod wordcount;
|
mod word_count;
|
||||||
use count_bytes::count_bytes_fast;
|
use count_bytes::count_bytes_fast;
|
||||||
use countable::WordCountable;
|
use countable::WordCountable;
|
||||||
use wordcount::{TitledWordCount, WordCount};
|
use word_count::{TitledWordCount, WordCount};
|
||||||
|
|
||||||
use clap::{App, Arg, ArgMatches};
|
use clap::{App, Arg, ArgMatches};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
|
@ -123,7 +123,7 @@ impl WordCount {
|
||||||
/// This struct supplements the actual word count with an optional title that is
|
/// This struct supplements the actual word count with an optional title that is
|
||||||
/// displayed to the user at the end of the program.
|
/// displayed to the user at the end of the program.
|
||||||
/// The reason we don't simply include title in the `WordCount` struct is that
|
/// 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)]
|
#[derive(Debug, Default, Clone)]
|
||||||
pub struct TitledWordCount<'a> {
|
pub struct TitledWordCount<'a> {
|
||||||
pub title: Option<&'a str>,
|
pub title: Option<&'a str>,
|
Loading…
Add table
Add a link
Reference in a new issue