Skip to content

Commit

Permalink
Remove the () from a function which is not nullary.
Browse files Browse the repository at this point in the history
`IsTerminal::is_terminal` takes a self argument, so don't write it with
a `()`.
  • Loading branch information
sunfishcode committed Mar 29, 2023
1 parent cc90de8 commit 63c2bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait IsTerminal {
/// Returns `true` if `this` is a terminal.
///
/// This is equivalent to calling `this.is_terminal()` and exists only as a
/// convenience to calling the trait method [`IsTerminal::is_terminal()`]
/// convenience to calling the trait method [`IsTerminal::is_terminal`]
/// without importing the trait.
///
/// # Example
Expand Down

0 comments on commit 63c2bf6

Please sign in to comment.