mirror of
https://github.com/uutils/coreutils
synced 2024-07-21 18:04:45 +00:00
refactor ~ (bin/coreutils) polish spelling (comments, names, and exceptions)
This commit is contained in:
parent
4e20dedf58
commit
3fb8a37ace
|
@ -58,7 +58,7 @@ fn main() {
|
|||
|
||||
// binary name equals prefixed util name?
|
||||
// * 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[..binary_as_util.len() - (*util).len()])
|
||||
.ends_with(char::is_alphanumeric)
|
||||
|
@ -71,7 +71,7 @@ fn main() {
|
|||
};
|
||||
|
||||
// 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();
|
||||
|
||||
match utils.get(&util[..]) {
|
||||
|
|
Loading…
Reference in a new issue