events: Fix documentation for a few functions

This commit is contained in:
Jonas Platte 2023-06-13 17:25:11 +02:00
parent b183677ef5
commit beded100ac
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
4 changed files with 6 additions and 9 deletions

View File

@ -70,7 +70,7 @@ impl FileEventContent {
}
/// Creates a new non-encrypted `FileEventContent` with the given plain text fallback
/// representation, url and file info.
/// representation, url and name.
pub fn plain_with_plain_text(
plain_text: impl Into<String>,
url: OwnedMxcUri,
@ -87,7 +87,7 @@ impl FileEventContent {
}
/// Creates a new encrypted `FileEventContent` with the given fallback representation, url,
/// encryption info and file info.
/// name and encryption info.
pub fn encrypted(
text: TextContentBlock,
url: OwnedMxcUri,
@ -105,7 +105,7 @@ impl FileEventContent {
}
/// Creates a new encrypted `FileEventContent` with the given plain text fallback
/// representation, url, encryption info and file info.
/// representation, url, name and encryption info.
pub fn encrypted_with_plain_text(
plain_text: impl Into<String>,
url: OwnedMxcUri,

View File

@ -31,8 +31,7 @@ impl AudioMessageEventContent {
Self { body, source, info: None }
}
/// Creates a new non-encrypted `AudioMessageEventContent` with the given body, url and
/// optional extra info.
/// Creates a new non-encrypted `AudioMessageEventContent` with the given bod and url.
pub fn plain(body: String, url: OwnedMxcUri) -> Self {
Self::new(body, MediaSource::Plain(url))
}

View File

@ -35,8 +35,7 @@ impl FileMessageEventContent {
Self { body, filename: None, source, info: None }
}
/// Creates a new non-encrypted `FileMessageEventContent` with the given body, url and
/// optional extra info.
/// Creates a new non-encrypted `FileMessageEventContent` with the given body and url.
pub fn plain(body: String, url: OwnedMxcUri) -> Self {
Self::new(body, MediaSource::Plain(url))
}

View File

@ -32,8 +32,7 @@ impl VideoMessageEventContent {
Self { body, source, info: None }
}
/// Creates a new non-encrypted `VideoMessageEventContent` with the given body, url and
/// optional extra info.
/// Creates a new non-encrypted `VideoMessageEventContent` with the given body and url.
pub fn plain(body: String, url: OwnedMxcUri) -> Self {
Self::new(body, MediaSource::Plain(url))
}