Skip to content

Commit fe4dd5b

Browse files
chore: fix some comments (#14475)
*Please write a short comment explaining your change (or "none" for internal only changes)* remove redundant words in comment changelog: none
2 parents 939d5f9 + a8bfafe commit fe4dd5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/operators/identity_op.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ enum Parens {
103103
///
104104
/// e.g. `-(x + y + 0)` cannot be reduced to `-x + y`, as the behavior changes silently.
105105
/// e.g. `1u64 + ((x + y + 0i32) as u64)` cannot be reduced to `1u64 + x + y as u64`, since
106-
/// the the cast expression will not apply to the same expression.
106+
/// the cast expression will not apply to the same expression.
107107
/// e.g. `0 + if b { 1 } else { 2 } + if b { 3 } else { 4 }` cannot be reduced
108108
/// to `if b { 1 } else { 2 } + if b { 3 } else { 4 }` where the `if` could be
109109
/// interpreted as a statement. The same behavior happens for `match`, `loop`,

rustc_tools_util/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn get_output(cmd: &str, args: &[&str]) -> Option<String> {
121121
pub fn rerun_if_git_changes() -> Option<()> {
122122
// Make sure we get rerun when the git commit changes.
123123
// We want to watch two files: HEAD, which tracks which branch we are on,
124-
// and the file for that branch that tracks which commit is is on.
124+
// and the file for that branch that tracks which commit is checked out.
125125

126126
// First, find the `HEAD` file. This should work even with worktrees.
127127
let git_head_file = PathBuf::from(get_output("git", &["rev-parse", "--git-path", "HEAD"])?);

0 commit comments

Comments
 (0)