mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
refactor/wc ~ polish spelling (comments, names, and exceptions)
This commit is contained in:
+2
-4
@@ -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>,
|
||||||
Reference in New Issue
Block a user