diff --git a/crates/matrix-sdk-crypto-js/src/lib.rs b/crates/matrix-sdk-crypto-js/src/lib.rs index 5ec5e1ed9..3f3a4de6a 100644 --- a/crates/matrix-sdk-crypto-js/src/lib.rs +++ b/crates/matrix-sdk-crypto-js/src/lib.rs @@ -35,7 +35,7 @@ use wasm_bindgen::{convert::RefFromWasmAbi, prelude::*}; /// RefFromWasmAbi`, inspired by /// https://github.com/rustwasm/wasm-bindgen/issues/2231#issuecomment-656293288. /// -/// The returned value is a likely to be `wasm_bindgen::__ref::Ref`. +/// The returned value is likely to be a `wasm_bindgen::__ref::Ref`. fn downcast(value: &JsValue, classname: &str) -> Result where T: RefFromWasmAbi, diff --git a/crates/matrix-sdk-crypto-js/src/machine.rs b/crates/matrix-sdk-crypto-js/src/machine.rs index 8ffade45c..d848f51e7 100644 --- a/crates/matrix-sdk-crypto-js/src/machine.rs +++ b/crates/matrix-sdk-crypto-js/src/machine.rs @@ -461,7 +461,7 @@ impl Into for ruma::EventEncryptionAlgorithm { #[wasm_bindgen(getter_with_clone)] #[derive(Debug, Clone)] pub struct EncryptionSettings { - /// The algorith, see `EncryptionAlgorithm`. + /// The algorithm, see `EncryptionAlgorithm`. pub algorithm: EncryptionAlgorithm, /// A duration expressed in microseconds. diff --git a/crates/matrix-sdk-crypto-js/src/requests.rs b/crates/matrix-sdk-crypto-js/src/requests.rs index ac7942582..468159947 100644 --- a/crates/matrix-sdk-crypto-js/src/requests.rs +++ b/crates/matrix-sdk-crypto-js/src/requests.rs @@ -176,7 +176,7 @@ request!(RoomMessageRequest from RumaRoomMessageRequest maps fields room_id, txn request!(KeysBackupRequest from RumaKeysBackupRequest maps fields version, rooms); // JavaScript has no complex enums like Rust. To return structs of -// different types, we have no choice that hidding everything behind a +// different types, we have no choice that hiding everything behind a // `JsValue`. pub(crate) struct OutgoingRequest(pub(crate) matrix_sdk_crypto::OutgoingRequest); diff --git a/crates/matrix-sdk-crypto-js/src/verifications.rs b/crates/matrix-sdk-crypto-js/src/verifications.rs index 1a22ccb40..d4a77728e 100644 --- a/crates/matrix-sdk-crypto-js/src/verifications.rs +++ b/crates/matrix-sdk-crypto-js/src/verifications.rs @@ -102,7 +102,7 @@ impl Sas { todo!() } - #[wasm_bindgen(js_name = "acceptWithSetings")] + #[wasm_bindgen(js_name = "acceptWithSettings")] pub fn accept_with_settings(&self) { todo!() }