diff options
| author | est31 <MTest31@outlook.com> | 2022-08-10 11:31:10 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-08-12 22:22:55 +0200 |
| commit | 6c4fc85f9ce72dfb89ceb3c8c11a2e85698f6da4 (patch) | |
| tree | dfd19d636e1e1a978d5a20feecb7a448c1efe3c6 /compiler/rustc_macros/src/lib.rs | |
| parent | cc6cff564ff68046c8e0c2fa967a7227a67097d2 (diff) | |
| download | rust-6c4fc85f9ce72dfb89ceb3c8c11a2e85698f6da4.tar.gz rust-6c4fc85f9ce72dfb89ceb3c8c11a2e85698f6da4.zip | |
Update rustdoc to new slug style
Diffstat (limited to 'compiler/rustc_macros/src/lib.rs')
| -rw-r--r-- | compiler/rustc_macros/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_macros/src/lib.rs b/compiler/rustc_macros/src/lib.rs index ab509b26f1c..2f9c13cf817 100644 --- a/compiler/rustc_macros/src/lib.rs +++ b/compiler/rustc_macros/src/lib.rs @@ -65,10 +65,10 @@ pub fn newtype_index(input: TokenStream) -> TokenStream { /// ..where `typeck.ftl` has the following contents.. /// /// ```fluent -/// typeck-field-multiply-specified-in-initializer = +/// typeck_field_multiply_specified_in_initializer = /// field `{$ident}` specified more than once /// .label = used more than once -/// .label-previous-use = first use of `{$ident}` +/// .label_previous_use = first use of `{$ident}` /// ``` /// ...then the macro parse the Fluent resource, emitting a diagnostic if it fails to do so, and /// will generate the following code: @@ -81,11 +81,11 @@ pub fn newtype_index(input: TokenStream) -> TokenStream { /// mod fluent_generated { /// mod typeck { /// pub const field_multiply_specified_in_initializer: DiagnosticMessage = -/// DiagnosticMessage::fluent("typeck-field-multiply-specified-in-initializer"); +/// DiagnosticMessage::fluent("typeck_field_multiply_specified_in_initializer"); /// pub const field_multiply_specified_in_initializer_label_previous_use: DiagnosticMessage = /// DiagnosticMessage::fluent_attr( -/// "typeck-field-multiply-specified-in-initializer", -/// "previous-use-label" +/// "typeck_field_multiply_specified_in_initializer", +/// "previous_use_label" /// ); /// } /// } |
