ruma: Fix a bunch of typos

This commit is contained in:
Damir Jelić 2021-12-03 13:36:19 +01:00 committed by Jonas Platte
parent caa3c05db3
commit ee3c8f3335
12 changed files with 18 additions and 18 deletions

View File

@ -198,7 +198,7 @@ impl ResponseField {
}
}
/// Return the contained field and HTTP header ident if this repsonse field is a header kind.
/// Return the contained field and HTTP header ident if this response field is a header kind.
fn as_header_field(&self) -> Option<(&Field, &Ident)> {
match self {
ResponseField::Header(field, ident) => Some((field, ident)),

View File

@ -84,7 +84,7 @@ Breaking changes:
Improvements:
* The `EndpointError`s that come with ruma crates now implement `std::errror::Error`
* The `EndpointError`s that come with ruma crates now implement `std::error::Error`
* Add a new `MatrixError` type to the `error` module that consists of a HTTP status code and JSON
`body` and is the new default error type for `ruma_api!`

View File

@ -200,7 +200,7 @@ Improvements:
* Add method `into_event_content` for `r0::room::create_room::CreationContent`
* Add room visibility endpoints: `r0::directory::{get_room_visibility, set_room_visibility}`.
* Add is_empty helpers for structs in `r0::sync::sync_events`
* Add a constructor for request structs of the followign endpoints
* Add a constructor for request structs of the following endpoints
* `r0::room::create_room`
* `r0::message::get_message_events`
* Add `logout_devices` field to `r0::account::change_password`
@ -276,7 +276,7 @@ Improvements:
* Add missing serde attributes to `get_content_thumbnail` query parameters
* Add missing `state` response field to `r0::message::get_message_events`
* Normalize `serde_json` imports
* Remove dependeny on the `url` crate
* Remove dependency on the `url` crate
# 0.7.2
@ -368,7 +368,7 @@ Improvements:
* `r0::account::request_3pid_management_token_via_msisdn`
* `r0::account::request_password_change_token_via_msisdn`
* `r0::account::request_registration_token_via_msisdn`
* `r0::acount::request_3pid_management_token_via_email`
* `r0::account::request_3pid_management_token_via_email`
* Update `r0::presence_get_presence` from r0.4.0 to r0.6.0
* Add `r0::account::bind_3pid`
* Add `r0::account::delete_3pid`

View File

@ -70,13 +70,13 @@ impl Response {
#[incoming_derive(PartialEq)]
#[serde(untagged)]
pub enum InvitationRecipient<'a> {
/// Used to invite user by their Matrix identifer.
/// Used to invite user by their Matrix identifier.
UserId {
/// Matrix identifier of user.
user_id: &'a UserId,
},
/// Used to invite user by a third party identifer.
/// Used to invite user by a third party identifier.
ThirdPartyId(Invite3pid<'a>),
}

View File

@ -1,4 +1,4 @@
//! Enpoints for sending and receiving messages
//! Endpoints for sending and receiving messages
pub mod get_message_events;
pub mod send_message_event;

View File

@ -57,7 +57,7 @@ pub struct Pusher {
/// A reverse-DNS style identifier for the application.
///
/// The maximum allowed lenght is 64 bytes.
/// The maximum allowed length is 64 bytes.
pub app_id: String,
/// A string that will allow the user to identify what application owns this pusher.

View File

@ -217,7 +217,7 @@ impl EventContextResult {
}
}
/// A grouping for partioning the result set.
/// A grouping for partitioning the result set.
#[derive(Clone, Default, Debug, Deserialize, Serialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct Grouping {

View File

@ -79,7 +79,7 @@ ruma_api! {
#[serde(default, skip_serializing_if = "GlobalAccountData::is_empty")]
pub account_data: GlobalAccountData,
/// Messages sent dirrectly between devices.
/// Messages sent directly between devices.
#[serde(default, skip_serializing_if = "ToDevice::is_empty")]
pub to_device: ToDevice,
@ -539,7 +539,7 @@ impl Presence {
}
}
/// Messages sent dirrectly between devices.
/// Messages sent directly between devices.
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct ToDevice {
@ -560,7 +560,7 @@ impl ToDevice {
}
}
/// Information on E2E device udpates.
/// Information on E2E device updates.
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct DeviceLists {

View File

@ -729,7 +729,7 @@ impl IncomingUserIdentifier {
}
}
/// Credentials for thirdparty authentification (e.g. email / phone number).
/// Credentials for third-party authentication (e.g. email / phone number).
#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct ThirdpartyIdCredentials {

View File

@ -156,7 +156,7 @@ Breaking changes:
ids without the need to understand the concrete method.
* Change `get_message_events` limit field type from `Option<UInt>` to `UInt`
* Add `alt_aliases` to `CanonicalAliasEventContent`
* Replace `format` and `formatted_body` fields in `TextMessagEventContent`,
* Replace `format` and `formatted_body` fields in `TextMessageEventContent`,
`NoticeMessageEventContent` and `EmoteMessageEventContent` with `formatted: FormattedBody`
* Rename `override_rules` in `push_rules::Ruleset` to `override_`
* Change `push_rules::PushCondition` variants from newtype variants with separate inner types to
@ -297,7 +297,7 @@ Improvements:
Breaking changes:
* `collections::only` no longer exports a `raw` submodule. It was never meant ot be exported in the first place.
* `collections::only` no longer exports a `raw` submodule. It was never meant to be exported in the first place.
* Renamed `stripped::{StrippedState => AnyStrippedStateEvent, StrippedStateContent => StrippedStateEvent}`
Improvements:

View File

@ -48,4 +48,4 @@ Improvements:
Breaking changes:
* Remove `key_algorithms` module (moved to ruma-identifers as `crypto_algorithms`)
* Remove `key_algorithms` module (moved to ruma-identifiers as `crypto_algorithms`)

View File

@ -32,7 +32,7 @@ where
}
/// Serde serializiation decorator to map None to an empty String,
/// and forward Somes to the Serialize implemention for T.
/// and forward Somes to the Serialize implementation for T.
///
/// To be used like this:
/// `#[serde(serialize_with = "empty_string_as_none")]`