Skip to content

Commit c953a25

Browse files
committed
Keep the new comments ASCII, like the rest of the crate
Two horizontal-ellipsis characters in comments this branch added, in a file whose merge-base has no non-ASCII byte anywhere. `...` says the same thing and does not depend on the reader's terminal or the diff viewer's encoding. Found by scanning for non-ASCII rather than by reading, which is the only way this class shows up: it does not fail a build, `typos` does not flag it, and a diff renders it as an ordinary character. The same scan found 53 em dashes and a stray CJK character on the sibling PR.
1 parent 583c3b8 commit c953a25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎guard/tests/utils.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub fn get_full_path_for_resource_file(path: &str) -> String {
109109
/// there, because `get_full_path_for_resource_file` builds them from it.
110110
///
111111
/// This replaced a `$HOME`-based version that first rewrote the home directory to `~` and then
112-
/// matched `~/…`, which had two bugs:
112+
/// matched `~/...`, which had two bugs:
113113
///
114114
/// - `$HOME` was substituted by plain substring match, so a checkout whose path merely
115115
/// *contains* `$HOME` was corrupted rather than normalised. With `HOME=/home/u`, the path
@@ -122,7 +122,7 @@ pub fn get_full_path_for_resource_file(path: &str) -> String {
122122
///
123123
/// Anchoring on the crate directory also leaves URLs alone by construction, which a regex over
124124
/// bare absolute paths would not: the SARIF fixtures contain
125-
/// `//docs.oasis-open.org/…/sarif-schema-2.1.0.json`, and reducing that to its basename would
125+
/// `//docs.oasis-open.org/.../sarif-schema-2.1.0.json`, and reducing that to its basename would
126126
/// break them. It is the only slash-bearing file reference in `guard/resources`, so the
127127
/// distinction is load-bearing for exactly one fixture and easy to lose.
128128
pub fn replace_path_with_filenames(text: String) -> String {

0 commit comments

Comments
 (0)