Skip to content

Commit 94dd5bb

Browse files
committed
Improve lint documentation
1 parent f0ffeb7 commit 94dd5bb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

clippy_lints/src/disallowed_script_idents.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@ declare_clippy_lint! {
1111
///
1212
/// This lint doesn't take into account non-text scripts such as `Unknown` and `Linear_A`.
1313
/// It also ignores the `Common` script type.
14-
/// While configuring, be sure to use official script names from [the list of supported scripts][supported_scripts]
15-
/// and replace spaces with undescores.
14+
/// While configuring, be sure to use official script name [aliases] from
15+
/// [the list of supported scripts][supported_scripts].
1616
///
17-
/// For example, `Syloti Nagri` must be represented as `"Syloti_Nagri`".
17+
/// See also: [`non_ascii_idents`].
1818
///
19-
/// See also: [`non_ascii_idents`](https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#non-ascii-idents).
20-
///
21-
/// [supported_scripts]: http://www.unicode.org/standard/supported.html
19+
/// [aliases]: http://www.unicode.org/reports/tr24/tr24-31.html#Script_Value_Aliases
20+
/// [supported_scripts]: https://www.unicode.org/iso15924/iso15924-codes.html
2221
///
2322
/// **Why is this bad?** It may be not desired to have many different scripts for
2423
/// identifiers in the codebase.
2524
///
2625
/// Note that if you only want to allow plain English, you might want to use
27-
/// built-in `non_ascii_idents` lint instead.
26+
/// built-in [`non_ascii_idents`] lint instead.
27+
///
28+
/// [`non_ascii_idents`]: https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#non-ascii-idents
2829
///
2930
/// **Known problems:** None.
3031
///

0 commit comments

Comments
 (0)