chore(crypto-js): Fix typos.
This commit is contained in:
@@ -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<T>`.
|
||||
/// The returned value is likely to be a `wasm_bindgen::__ref::Ref<T>`.
|
||||
fn downcast<T>(value: &JsValue, classname: &str) -> Result<T::Anchor, JsError>
|
||||
where
|
||||
T: RefFromWasmAbi<Abi = u32>,
|
||||
|
||||
@@ -461,7 +461,7 @@ impl Into<EncryptionAlgorithm> 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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ impl Sas {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = "acceptWithSetings")]
|
||||
#[wasm_bindgen(js_name = "acceptWithSettings")]
|
||||
pub fn accept_with_settings(&self) {
|
||||
todo!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user