diff --git a/crates/ruma-events/src/room/message.rs b/crates/ruma-events/src/room/message.rs index c9b01362..8197835b 100644 --- a/crates/ruma-events/src/room/message.rs +++ b/crates/ruma-events/src/room/message.rs @@ -258,7 +258,7 @@ impl MessageType { /// Returns the associated data. /// /// Prefer to use the public variants of `MessageType` where possible; this method is meant to - /// be used for unsupported message types only. + /// be used for custom message types only. pub fn data(&self) -> Cow<'_, JsonObject> { fn serialize(obj: &T) -> JsonObject { match serde_json::to_value(obj).expect("message type serialization to succeed") {