mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
refactor ~ (bin/coreutils) polish spelling (comments, names, and exceptions)
This commit is contained in:
parent
4e20dedf58
commit
3fb8a37ace
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ fn main() {
|
||||||
|
|
||||||
// binary name equals prefixed util name?
|
// binary name equals prefixed util name?
|
||||||
// * prefix/stem may be any string ending in a non-alphanumeric character
|
// * prefix/stem may be any string ending in a non-alphanumeric character
|
||||||
let utilname = if let Some(util) = utils.keys().find(|util| {
|
let util_name = if let Some(util) = utils.keys().find(|util| {
|
||||||
binary_as_util.ends_with(*util)
|
binary_as_util.ends_with(*util)
|
||||||
&& !(&binary_as_util[..binary_as_util.len() - (*util).len()])
|
&& !(&binary_as_util[..binary_as_util.len() - (*util).len()])
|
||||||
.ends_with(char::is_alphanumeric)
|
.ends_with(char::is_alphanumeric)
|
||||||
|
@ -71,7 +71,7 @@ fn main() {
|
||||||
};
|
};
|
||||||
|
|
||||||
// 0th argument equals util name?
|
// 0th argument equals util name?
|
||||||
if let Some(util_os) = utilname {
|
if let Some(util_os) = util_name {
|
||||||
let util = util_os.as_os_str().to_string_lossy();
|
let util = util_os.as_os_str().to_string_lossy();
|
||||||
|
|
||||||
match utils.get(&util[..]) {
|
match utils.get(&util[..]) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue