Update rustdoc to new slug style
This commit is contained in:
parent
cc6cff564f
commit
6c4fc85f9c
2 changed files with 13 additions and 13 deletions
|
@ -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"
|
||||
/// );
|
||||
/// }
|
||||
/// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue