Skip to content

Commit 96354c1

Browse files
committed
Switch documentation to simple present
1 parent ffc72d0 commit 96354c1

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/lib.rs

+19-19
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ use clap::{Parser, Subcommand};
88
#[derive(Parser, Debug)]
99
#[clap(version, about, long_about = None)]
1010
pub struct Args {
11-
/// Specifies how the program will read the git history.
11+
/// Specifies how the program will read the Git history.
1212
#[clap(subcommand)]
1313
input_method: InputMethod,
1414

15-
/// Always show the entire output.
15+
/// Always shows the entire output.
1616
#[clap(short = 'v', long = "verbose")]
1717
is_verbose: bool,
1818

19-
/// Filter the LOC diff for a certain file extension (e.g. `--file-extension
20-
/// cpp`). ORs if specified multiple times.
19+
/// Filters the LOC diff for a certain file extension (e.g.
20+
/// `--file-extension cpp`). ORs if specified multiple times.
2121
#[clap(short, long)]
2222
file_extension: Vec<String>,
2323

@@ -29,39 +29,39 @@ pub struct Args {
2929
#[clap(short, long)]
3030
output: Option<PathBuf>,
3131

32-
/// Filter for certain author names. ORs if specified multiple times.
32+
/// Filters for certain author names. ORs if specified multiple times.
3333
#[clap(short, long)]
3434
author_contains: Vec<String>,
3535

36-
/// Filter for certain author names. ORs if specified multiple times.
36+
/// Filters for certain author names. ORs if specified multiple times.
3737
#[clap(long)]
3838
author_equals: Vec<String>,
3939

40-
/// Filter for certain author emails. ORs if specified multiple times.
40+
/// Filters for certain author emails. ORs if specified multiple times.
4141
#[clap(short, long)]
4242
email_contains: Vec<String>,
4343

44-
/// Filter for certain author emails. ORs if specified multiple times.
44+
/// Filters for certain author emails. ORs if specified multiple times.
4545
#[clap(long)]
4646
email_equals: Vec<String>,
4747

48-
/// Filter for certain commit hashes. ORs if specified multiple times.
48+
/// Filters for certain commit hashes. ORs if specified multiple times.
4949
#[clap(short, long)]
5050
commit_contains: Vec<String>,
5151

52-
/// Filter for certain commit hashes. ORs if specified multiple times.
52+
/// Filters for certain commit hashes. ORs if specified multiple times.
5353
#[clap(long)]
5454
commit_equals: Vec<String>,
5555

56-
/// Filter for certain commit messages. ORs if specified multiple times.
56+
/// Filters for certain commit messages. ORs if specified multiple times.
5757
#[clap(short, long)]
5858
message_contains: Vec<String>,
5959

60-
/// Filter for certain commit messages. ORs if specified multiple times.
60+
/// Filters for certain commit messages. ORs if specified multiple times.
6161
#[clap(long)]
6262
message_equals: Vec<String>,
6363

64-
/// Filter for certain commit messages. ORs if specified multiple times.
64+
/// Filters for certain commit messages. ORs if specified multiple times.
6565
#[clap(short = 'l', long)]
6666
message_starts_with: Vec<String>,
6767
}
@@ -117,21 +117,21 @@ impl Args {
117117
/// The possible input methods.
118118
#[derive(Subcommand, Debug)]
119119
pub enum InputMethod {
120-
/// Read the input from the local Git history.
120+
/// Reads the input from the local Git history.
121121
GitHistory,
122122

123-
/// Read the specified input file.
123+
/// Reads the specified input file.
124124
LogFile {
125125
/// The log file to read from.
126126
log_file: PathBuf,
127127
},
128128

129-
/// Read from `stdin`.
129+
/// Reads from `stdin`.
130130
Stdin,
131131
}
132132

133133
impl InputMethod {
134-
/// Process the configured input method.
134+
/// Processes the configured input method.
135135
pub fn read(&self) -> Result<String, Box<dyn std::error::Error>> {
136136
match self {
137137
Self::GitHistory => {
@@ -293,7 +293,7 @@ impl Author {
293293
&self.name
294294
}
295295

296-
/// Extract the author information from the given line.
296+
/// Extracts the author information from the given line.
297297
pub fn parse(author: &str) -> Result<Self, AuthorParseError> {
298298
let (name, remainder) = author.split_once('<').ok_or(AuthorParseError::NameFailed)?;
299299

@@ -374,7 +374,7 @@ impl Commit {
374374
&self.message
375375
}
376376

377-
/// Construct a new instance from the raw input data.
377+
/// Constructs a new instance from the raw input data.
378378
pub fn parse(commit: &str) -> Result<(Self, &str), CommitParseError> {
379379
let (commit, remainder) = commit
380380
.strip_prefix("commit")

0 commit comments

Comments
 (0)