Clean up code blocks in doc strings
This commit is contained in:
parent
457b5187a7
commit
19006cd047
@ -83,7 +83,7 @@ pub mod v1 {
|
||||
/// Profile fields to specify in query.
|
||||
///
|
||||
/// This type can hold an arbitrary string. To build this with a custom value, convert it from a
|
||||
/// string with `::from() / .into()`. To check for values that are not available as a
|
||||
/// string with `::from()` / `.into()`. To check for values that are not available as a
|
||||
/// documented variant here, use its string representation, obtained through
|
||||
/// [`.as_str()`](Self::as_str()).
|
||||
#[derive(Clone, PartialEq, Eq, StringEnum)]
|
||||
|
@ -11,7 +11,7 @@ pub mod lookup_3pid;
|
||||
/// Matrix Spec.
|
||||
///
|
||||
/// This type can hold an arbitrary string. To build this with a custom value, convert it from a
|
||||
/// string with `::from() / .into()`. To check for values that are not available as a documented
|
||||
/// string with `::from()` / `.into()`. To check for values that are not available as a documented
|
||||
/// variant here, use its string representation, obtained through [`.as_str()`](Self::as_str()).
|
||||
#[derive(Clone, PartialEq, Eq, StringEnum)]
|
||||
#[non_exhaustive]
|
||||
|
@ -638,7 +638,7 @@ fn generate_event_content_without_relation<'a>(
|
||||
|
||||
let type_doc = format!(
|
||||
"Form of [`{ident}`] without relation.\n\n\
|
||||
To construct this type, construct a [`{ident}`] and then use one of its `::from() / .into()` methods."
|
||||
To construct this type, construct a [`{ident}`] and then use one of its `::from()` / `.into()` methods."
|
||||
);
|
||||
let without_relation_ident = format_ident!("{ident}WithoutRelation");
|
||||
|
||||
|
@ -192,7 +192,7 @@ fn generate_enum(
|
||||
#[doc = #enum_doc]
|
||||
///
|
||||
/// This type can hold an arbitrary string. To build events with a custom type, convert it
|
||||
/// from a string with `::from() / .into()`. To check for events that are not available as a
|
||||
/// from a string with `::from()` / `.into()`. To check for events that are not available as a
|
||||
/// documented variant here, use its string representation, obtained through `.to_string()`.
|
||||
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||
|
@ -147,7 +147,7 @@ pub mod v1 {
|
||||
/// notifications in a way that will preserve battery power on mobile devices.
|
||||
///
|
||||
/// This type can hold an arbitrary string. To build this with a custom value, convert it from a
|
||||
/// string with `::from() / .into()`. To check for values that are not available as a
|
||||
/// string with `::from()` / `.into()`. To check for values that are not available as a
|
||||
/// documented variant here, use its string representation, obtained through `.as_str()`.
|
||||
#[derive(Clone, Default, PartialEq, Eq, StringEnum)]
|
||||
#[ruma_enum(rename_all = "snake_case")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user