From 8856e6d328776a548b6e6f5b5c4cf335b15feba8 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Tue, 9 Jul 2024 22:32:32 +0900 Subject: [PATCH] diff: fix typo in get_diff_stat() comment --- cli/src/diff_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/diff_util.rs b/cli/src/diff_util.rs index f730b78c13..4e46fc0349 100644 --- a/cli/src/diff_util.rs +++ b/cli/src/diff_util.rs @@ -1127,7 +1127,7 @@ fn get_diff_stat( ) -> DiffStat { // TODO: this matches git's behavior, which is to count the number of newlines // in the file. but that behavior seems unhelpful; no one really cares how - // many `0xa0` characters are in an image. + // many `0x0a` characters are in an image. let diff = Diff::by_line(&[&left_content.contents, &right_content.contents]); let mut added = 0; let mut removed = 0;