Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 20e1a1b

Browse files
authored
Fix typos (#177)
1 parent b5f342c commit 20e1a1b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub struct AEffect {
134134
impl AEffect {
135135
/// Return handle to Plugin object. Only works for plugins created using this library.
136136
/// Caller is responsible for not calling this function concurrently.
137-
// Supresses warning about returning a reference to a box
137+
// Suppresses warning about returning a reference to a box
138138
#[allow(clippy::borrowed_box)]
139139
pub unsafe fn get_plugin(&self) -> &mut Box<dyn Plugin> {
140140
//FIXME: find a way to do this without resorting to transmuting via a box
@@ -480,7 +480,7 @@ impl Events {
480480
}
481481
}
482482

483-
/// The type of event that has occured. See `api::Event.event_type`.
483+
/// The type of event that has occurred. See `api::Event.event_type`.
484484
#[repr(i32)]
485485
#[derive(Copy, Clone, Debug)]
486486
pub enum EventType {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//!
1515
//! ## `Plugin` Trait
1616
//! All methods in this trait have a default implementation except for the `get_info` method which
17-
//! must be implemented by the plugin. Any of the default implementations may be overriden for
17+
//! must be implemented by the plugin. Any of the default implementations may be overridden for
1818
//! custom functionality; the defaults do nothing on their own.
1919
//!
2020
//! ## `PluginParameters` Trait

src/plugin.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub enum OpCode {
6868
/// [index]: parameter
6969
/// [ptr]: char buffer, limited to `consts::MAX_PARAM_STR_LEN` (e.g. "db", "ms", etc)
7070
GetParameterLabel,
71-
/// [index]: paramter
71+
/// [index]: parameter
7272
/// [ptr]: char buffer, limited to `consts::MAX_PARAM_STR_LEN` (e.g. "0.5", "ROOM", etc).
7373
GetParameterDisplay,
7474
/// [index]: parameter
@@ -200,7 +200,7 @@ pub enum OpCode {
200200
/// [ptr]: "Can do" string.
201201
/// [return]: 1 = yes, 0 = maybe, -1 = no.
202202
CanDo,
203-
/// [return]: tail size (e.g. reverb time). 0 is defualt, 1 means no tail.
203+
/// [return]: tail size (e.g. reverb time). 0 is default, 1 means no tail.
204204
GetTailSize,
205205

206206
/// Deprecated.
@@ -476,7 +476,7 @@ pub trait Plugin: Send {
476476

477477
/// Called during initialization to pass a `HostCallback` to the plugin.
478478
///
479-
/// This method can be overriden to set `host` as a field in the plugin struct.
479+
/// This method can be overridden to set `host` as a field in the plugin struct.
480480
///
481481
/// # Example
482482
///
@@ -738,7 +738,7 @@ pub trait PluginParameters: Sync {
738738
format!("Param {}", index)
739739
}
740740

741-
/// Get the value of paramater at `index`. Should be value between 0.0 and 1.0.
741+
/// Get the value of parameter at `index`. Should be value between 0.0 and 1.0.
742742
fn get_parameter(&self, index: i32) -> f32 {
743743
0.0
744744
}

0 commit comments

Comments
 (0)