matrix-sdk: Fix some more typos

master
Damir Jelić 2021-06-08 11:11:08 +02:00
parent e1d905fbc6
commit 5fa2b05622
7 changed files with 7 additions and 7 deletions

View File

@ -843,7 +843,7 @@ impl Client {
/// # use matrix_sdk::Client;
/// # use url::Url;
/// # block_on(async {
/// # let homeserver = Url::parse("http://locahost:8080").unwrap();
/// # let homeserver = Url::parse("http://localhost:8080").unwrap();
/// # let client = Client::new(homeserver).unwrap();
/// let path = Path::new("/home/example/selfie.jpg");
/// let mut image = File::open(&path).unwrap();

View File

@ -59,7 +59,7 @@ pub enum AlgorithmInfo {
/// key originally.
curve25519_key: String,
/// The signing keys that have created the megolm key that was used to
/// decrypt this session. This map will usually contain a signle ed25519
/// decrypt this session. This map will usually contain a single ed25519
/// key.
sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>,
/// Chain of curve25519 keys through which this session was forwarded,

View File

@ -55,7 +55,7 @@ impl<'a, R: Read> Read for AttachmentDecryptor<'a, R> {
if hash.as_slice() == self.expected_hash.as_slice() {
Ok(0)
} else {
Err(IoError::new(ErrorKind::Other, "Hash missmatch while decrypting"))
Err(IoError::new(ErrorKind::Other, "Hash mismatch while decrypting"))
}
} else {
self.sha.update(&buf[0..read_bytes]);

View File

@ -75,7 +75,7 @@ pub struct EncryptionSettings {
pub rotation_period: Duration,
/// How many messages should be sent before changing the session.
pub rotation_period_msgs: u64,
/// The history visibilty of the room when the session was created.
/// The history visibility of the room when the session was created.
pub history_visibility: HistoryVisibility,
}

View File

@ -42,7 +42,7 @@ use crate::{
/// This object holds the private and public ed25519 key triplet that is used
/// for cross signing.
///
/// The object might be comletely empty or have only some of the key pairs
/// The object might be completely empty or have only some of the key pairs
/// available.
///
/// It can be used to sign devices or other identities.

View File

@ -73,7 +73,7 @@ impl From<Sas> for Verification {
/// The verification state indicating that the verification finished
/// successfully.
///
/// We can now mark the device in our verified devices lits as verified and sign
/// We can now mark the device in our verified devices list as verified and sign
/// the master keys in the verified devices list.
#[derive(Clone, Debug)]
pub struct Done {

View File

@ -177,7 +177,7 @@ impl Default for AcceptedProtocols {
/// A type level state machine modeling the Sas flow.
///
/// This is the generic struc holding common data between the different states
/// This is the generic struct holding common data between the different states
/// and the specific state.
#[derive(Clone)]
pub struct SasState<S: Clone> {