mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 22:17:45 +00:00
fix a typo
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
This commit is contained in:
parent
1253323027
commit
a9209049bf
1 changed files with 1 additions and 1 deletions
|
@ -607,7 +607,7 @@ fn default_compare(a: &str, b: &str) -> Ordering {
|
||||||
fn leading_num_common(a: &str) -> &str {
|
fn leading_num_common(a: &str) -> &str {
|
||||||
let mut s = "";
|
let mut s = "";
|
||||||
|
|
||||||
// check whether char is numeric, whitespace or decimal point or thousand seperator
|
// check whether char is numeric, whitespace or decimal point or thousand separator
|
||||||
for (idx, c) in a.char_indices() {
|
for (idx, c) in a.char_indices() {
|
||||||
if !c.is_numeric()
|
if !c.is_numeric()
|
||||||
&& !c.is_whitespace()
|
&& !c.is_whitespace()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue