aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIllia <[email protected]>2016-12-31 16:39:46 +0300
committerIllia <[email protected]>2016-12-31 16:39:46 +0300
commit52e871383317c85ce8144ecae4120633da367928 (patch)
tree64f3fedc2f4d9a8be97c2c1731ed947968fc634a /src
parentAdd command alias support and command.example (diff)
downloadserenity-52e871383317c85ce8144ecae4120633da367928.tar.xz
serenity-52e871383317c85ce8144ecae4120633da367928.zip
Fix typo
Diffstat (limited to 'src')
-rw-r--r--src/client/mod.rs2
-rw-r--r--src/client/rest/mod.rs4
-rw-r--r--src/client/rest/ratelimiting.rs4
-rw-r--r--src/ext/cache/mod.rs4
-rw-r--r--src/ext/voice/handler.rs4
-rw-r--r--src/model/channel.rs2
-rw-r--r--src/model/guild.rs2
-rw-r--r--src/model/invite.rs4
-rw-r--r--src/prelude.rs2
-rw-r--r--src/utils/builder/search.rs4
-rw-r--r--src/utils/colour.rs6
-rw-r--r--src/utils/message_builder.rs2
12 files changed, 20 insertions, 20 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index aed11a0..ab4b47c 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -272,7 +272,7 @@ impl Client {
///
/// This will retrieve an automatically determined number of shards to use
/// from the API - determined by Discord - and then open a number of shards
- /// equivilant to that amount.
+ /// equivalent to that amount.
///
/// Refer to the [Gateway documentation][gateway docs] for more information
/// on effectively using sharding.
diff --git a/src/client/rest/mod.rs b/src/client/rest/mod.rs
index 1af067d..6ecbd94 100644
--- a/src/client/rest/mod.rs
+++ b/src/client/rest/mod.rs
@@ -74,7 +74,7 @@ pub fn set_token(token: &str) {
/// event is received.
///
/// **Note**: This will fail if you are already in the guild, or are banned. A
-/// ban is equivilant to an IP ban.
+/// ban is equivalent to an IP ban.
///
/// **Note**: Requires that the current user be a user account. Bots can not
/// accept invites. Instead, they must be accepted via OAuth2 authorization
@@ -160,7 +160,7 @@ pub fn add_member_role(guild_id: u64, user_id: u64, role_id: u64) -> Result<()>
/// Bans a [`User`] from a [`Guild`], removing their messages sent in the last
/// X number of days.
///
-/// Passing a `delete_message_days` of `0` is equivilant to not removing any
+/// Passing a `delete_message_days` of `0` is equivalent to not removing any
/// messages. Up to `7` days' worth of messages may be deleted.
///
/// **Note**: Requires that you have the [Ban Members] permission.
diff --git a/src/client/rest/ratelimiting.rs b/src/client/rest/ratelimiting.rs
index a404310..9a7ba8e 100644
--- a/src/client/rest/ratelimiting.rs
+++ b/src/client/rest/ratelimiting.rs
@@ -14,7 +14,7 @@
//! `GET /channels/5/messages/8` being rate limited _separately_. However, the
//! two URIs of `GET /channels/10/messages/11` and
//! `GET /channels/10/messages/12` will count towards the "same ratelimit", as
-//! the major parameter - `10` is equivilant in both URIs' format.
+//! the major parameter - `10` is equivalent in both URIs' format.
//!
//! # Examples
//!
@@ -30,7 +30,7 @@
//! `10`, requesting the first URI will return a `remaining` of `9` in the
//! response. Immediately after - prior to buckets resetting - performing a
//! request to the _second_ URI will return a `remaining` of `8` in the
-//! response, as the major parameter - `channel_id` - is equivilant for the two
+//! response, as the major parameter - `channel_id` - is equivalent for the two
//! requests (`10`).
//!
//!
diff --git a/src/ext/cache/mod.rs b/src/ext/cache/mod.rs
index c09e1d8..7d6255e 100644
--- a/src/ext/cache/mod.rs
+++ b/src/ext/cache/mod.rs
@@ -144,8 +144,8 @@ pub struct Cache {
pub guilds: HashMap<GuildId, Guild>,
/// A map of notes that a user has made for individual users.
///
- /// An empty note is equivilant to having no note, and creating an empty
- /// note is equivilant to deleting a note.
+ /// An empty note is equivalent to having no note, and creating an empty
+ /// note is equivalent to deleting a note.
///
/// This will always be empty for bot users.
pub notes: HashMap<UserId, String>,
diff --git a/src/ext/voice/handler.rs b/src/ext/voice/handler.rs
index 05f977d..f954d22 100644
--- a/src/ext/voice/handler.rs
+++ b/src/ext/voice/handler.rs
@@ -211,9 +211,9 @@ impl Handler {
///
/// This has 3 separate behaviors:
///
- /// - if the given `channel_id` is equivilant to the current connected
+ /// - if the given `channel_id` is equivalent to the current connected
/// `channel_id`, then do nothing;
- /// - if the given `channel_id` is _not_ equivilant to the current connected
+ /// - if the given `channel_id` is _not_ equivalent to the current connected
/// `channel_id`, then switch to the given `channel_id`;
/// - if not currently connected to a voice channel, connect to the given
/// one.
diff --git a/src/model/channel.rs b/src/model/channel.rs
index 8169b9c..acf8d26 100644
--- a/src/model/channel.rs
+++ b/src/model/channel.rs
@@ -863,7 +863,7 @@ impl PrivateChannel {
}
/// Deletes the channel. This does not delete the contents of the channel,
- /// and is equivilant to closing a private channel on the client, which can
+ /// and is equivalent to closing a private channel on the client, which can
/// be re-opened.
#[cfg(feature="methods")]
pub fn delete(&self) -> Result<Channel> {
diff --git a/src/model/guild.rs b/src/model/guild.rs
index 763c610..74385a1 100644
--- a/src/model/guild.rs
+++ b/src/model/guild.rs
@@ -1289,7 +1289,7 @@ impl Role {
/// Checks whether the role has all of the given permissions.
///
/// The 'precise' argument is used to check if the role's permissions are
- /// precisely equivilant to the given permissions. If you need only check
+ /// precisely equivalent to the given permissions. If you need only check
/// that the role has at least the given permissions, pass `false`.
pub fn has_permissions(&self, permissions: Permissions, precise: bool)
-> bool {
diff --git a/src/model/invite.rs b/src/model/invite.rs
index 0d68ff0..adfba60 100644
--- a/src/model/invite.rs
+++ b/src/model/invite.rs
@@ -16,7 +16,7 @@ impl Invite {
/// Refer to [`rest::accept_invite`] for more information.
///
/// **Note**: This will fail if you are already in the guild, or are banned.
- /// A ban is equivilant to an IP ban.
+ /// A ban is equivalent to an IP ban.
///
/// **Note**: Requires that the current user be a user account.
///
@@ -76,7 +76,7 @@ impl RichInvite {
/// Refer to [`rest::accept_invite`] for more information.
///
/// **Note**: This will fail if you are already in the guild, or are banned.
- /// A ban is equivilant to an IP ban.
+ /// A ban is equivalent to an IP ban.
///
/// **Note**: Requires that the current user be a user account.
///
diff --git a/src/prelude.rs b/src/prelude.rs
index 94fbacf..829ea9c 100644
--- a/src/prelude.rs
+++ b/src/prelude.rs
@@ -1,6 +1,6 @@
//! A set of exports which can be helpful to use.
//!
-//! Note that the `SerenityError` re-export is equivilant to
+//! Note that the `SerenityError` re-export is equivalent to
//! [`serenity::Error`], although is re-exported as a separate name to remove
//! likely ambiguity with other crate error enums.
//!
diff --git a/src/utils/builder/search.rs b/src/utils/builder/search.rs
index 1aadec4..47863ca 100644
--- a/src/utils/builder/search.rs
+++ b/src/utils/builder/search.rs
@@ -19,7 +19,7 @@ pub enum SortingMode {
}
impl SortingMode {
- /// Retrieves the name of the sorting mode. This is equivilant to a
+ /// Retrieves the name of the sorting mode. This is equivalent to a
/// lowercase string version of each variant.
pub fn name(&self) -> &str {
match *self {
@@ -60,7 +60,7 @@ pub enum SortingOrder {
}
impl SortingOrder {
- /// Retrieves the name of the sorting order. This is equivilant to a
+ /// Retrieves the name of the sorting order. This is equivalent to a
/// lowercase string version of each variant.
pub fn name(&self) -> &str {
match *self {
diff --git a/src/utils/colour.rs b/src/utils/colour.rs
index 47ed7e8..a40d356 100644
--- a/src/utils/colour.rs
+++ b/src/utils/colour.rs
@@ -19,7 +19,7 @@ macro_rules! colour {
/// as the API works with an integer value instead of an RGB value.
///
/// Instances can be created by using the struct's associated functions. These
-/// produce presets equivilant to those found in the official client's colour
+/// produce presets equivalent to those found in the official client's colour
/// picker.
///
/// # Examples
@@ -76,7 +76,7 @@ impl Colour {
///
/// # Examples
///
- /// Create a new Colour, and then ensure that its inner value is equivilant
+ /// Create a new Colour, and then ensure that its inner value is equivalent
/// to a specific RGB value, retrieved via [`get_tuple`]:
///
/// ```rust
@@ -177,7 +177,7 @@ impl Colour {
/// Returns a tuple of the red, green, and blue components of this Colour.
///
- /// This is equivilant to creating a tuple with the return values of
+ /// This is equivalent to creating a tuple with the return values of
/// [`get_r`], [`get_g`], and [`get_b`].
///
/// # Examples
diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs
index a93468e..4205f1b 100644
--- a/src/utils/message_builder.rs
+++ b/src/utils/message_builder.rs
@@ -40,7 +40,7 @@ impl MessageBuilder {
///
/// # Examples
///
- /// This is equivilant to simply retrieving the tuple struct's first value:
+ /// This is equivalent to simply retrieving the tuple struct's first value:
///
/// ```rust
/// use serenity::utils::MessageBuilder;