Skip to content

Commit e3f3692

Browse files
committed
Mention user-supplied strings
1 parent 7732810 commit e3f3692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-non-ascii-idents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ The code used for implementing the various lints and checks will be released to
176176
- Script identification and comparison for `mixed_script_detection` ([UTS #39 Section 5.2][TR39RestrictionLevel])
177177
- `skeleton(X)` algorithm for confusable detection ([UTS #39 Section 4][TR39Confusable])
178178

179-
Confusables detection works well when there are other identifiers to compare against, but in some cases there's only one instance of an identifier in the code. For example we have crates that use proc macros to expose command line options or REST endpoints. Crates that do things like these can use such algorithms to ensure better error handling; for example if we accidentally end up having an `/арр` endpoint (in Cyrillic) because of a `#[annotation] fn арр()`, visiting `/app` (in Latin) may show a comprehensive error (or pass-through, based on requirements)
179+
Confusables detection works well when there are other identifiers to compare against, but in some cases there's only one instance of an identifier in the code, and it's compared with user-supplied strings. For example we have crates that use proc macros to expose command line options or REST endpoints. Crates that do things like these can use such algorithms to ensure better error handling; for example if we accidentally end up having an `/арр` endpoint (in Cyrillic) because of a `#[annotation] fn арр()`, visiting `/app` (in Latin) may show a comprehensive error (or pass-through, based on requirements)
180180

181181
## Conformance Statement
182182

0 commit comments

Comments
 (0)