Skip to content

Commit c5f8b2c

Browse files
committed
style-guide: Define (and capitalize) "ASCIIbetically"
The style guide didn't give any definition for it.
1 parent d270af3 commit c5f8b2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/style-guide/src/items.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ foo::{
478478
A *group* of imports is a set of imports on the same or sequential lines. One or
479479
more blank lines or other items (e.g., a function) separate groups of imports.
480480

481-
Within a group of imports, imports must be sorted ascii-betically. Groups of
482-
imports must not be merged or re-ordered.
481+
Within a group of imports, imports must be sorted ASCIIbetically (uppercase
482+
before lowercase). Groups of imports must not be merged or re-ordered.
483483

484484

485485
E.g., input:
@@ -507,7 +507,7 @@ re-ordering.
507507

508508
#### Ordering list import
509509

510-
Names in a list import must be sorted ascii-betically, but with `self` and
510+
Names in a list import must be sorted ASCIIbetically, but with `self` and
511511
`super` first, and groups and glob imports last. This applies recursively. For
512512
example, `a::*` comes before `b::a` but `a::b` comes before `a::*`. E.g.,
513513
`use foo::bar::{a, b::c, b::d, b::d::{x, y, z}, b::{self, r, s}};`.

0 commit comments

Comments
 (0)