diff --git a/crates/ruma-events/src/key/verification/accept.rs b/crates/ruma-events/src/key/verification/accept.rs index 18d4a85a..7d979c7f 100644 --- a/crates/ruma-events/src/key/verification/accept.rs +++ b/crates/ruma-events/src/key/verification/accept.rs @@ -121,7 +121,7 @@ pub struct SasV1Content { pub commitment: String, } -/// Mandatory initial set of fields for creating an accept `MSasV1Content`. +/// Mandatory initial set of fields for creating an accept `SasV1Content`. #[derive(Clone, Debug, Deserialize)] pub struct SasV1ContentInit { /// The key agreement protocol the device is choosing to use, out of the @@ -149,7 +149,7 @@ pub struct SasV1ContentInit { } impl From for SasV1Content { - /// Creates a new `MSasV1Content` from the given init struct. + /// Creates a new `SasV1Content` from the given init struct. fn from(init: SasV1ContentInit) -> Self { SasV1Content { hash: init.hash, diff --git a/crates/ruma-events/src/key/verification/start.rs b/crates/ruma-events/src/key/verification/start.rs index e41b9aa2..fd4a8c3d 100644 --- a/crates/ruma-events/src/key/verification/start.rs +++ b/crates/ruma-events/src/key/verification/start.rs @@ -120,7 +120,7 @@ pub struct ReciprocateV1Content { #[cfg(feature = "unstable-pre-spec")] impl ReciprocateV1Content { - /// Create a new `MReciprocateV1Content` with the given shared secret. + /// Create a new `ReciprocateV1Content` with the given shared secret. /// /// The shared secret needs to come from the scanned QR code, encoded using /// unpadded base64. @@ -155,7 +155,7 @@ pub struct SasV1Content { pub short_authentication_string: Vec, } -/// Mandatory initial set of fields for creating an `MSasV1Content`. +/// Mandatory initial set of fields for creating an `SasV1Content`. #[derive(Clone, Debug, Deserialize)] pub struct SasV1ContentInit { /// The key agreement protocols the sending device understands. @@ -180,7 +180,7 @@ pub struct SasV1ContentInit { } impl SasV1Content { - /// Create a new `MSasV1Content` with the given values. + /// Create a new `SasV1Content` with the given values. /// /// # Errors /// @@ -199,7 +199,7 @@ impl SasV1Content { impl TryFrom for SasV1Content { type Error = InvalidInput; - /// Creates a new `MSasV1Content` from the given init struct. + /// Creates a new `SasV1Content` from the given init struct. fn try_from(init: SasV1ContentInit) -> Result { if !init.key_agreement_protocols.contains(&KeyAgreementProtocol::Curve25519) && !init.key_agreement_protocols.contains(&KeyAgreementProtocol::Curve25519HkdfSha256)