Skip to content

Commit e897a89

Browse files
authored
Merge pull request #372 from uklotzde/typos
Fix codespell typos
2 parents 74b58e0 + 32dca86 commit e897a89

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_stages:
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.4.0
8+
rev: v4.5.0
99
hooks:
1010
- id: check-case-conflict
1111
- id: check-json
@@ -28,26 +28,26 @@ repos:
2828
stages:
2929
- commit-msg
3030
- repo: https://github.com/DavidAnson/markdownlint-cli2
31-
rev: v0.8.1
31+
rev: v0.10.0
3232
hooks:
3333
- id: markdownlint-cli2
3434
exclude: ^LICENSE\.md$
3535
- repo: https://github.com/shellcheck-py/shellcheck-py
36-
rev: v0.9.0.5
36+
rev: v0.9.0.6
3737
hooks:
3838
- id: shellcheck
3939
- repo: https://github.com/codespell-project/codespell
40-
rev: v2.2.5
40+
rev: v2.2.6
4141
hooks:
4242
- id: codespell
4343
args: [--ignore-words=.codespellignore]
4444
- repo: https://github.com/sirosen/check-jsonschema
45-
rev: 0.23.3
45+
rev: 0.27.0
4646
hooks:
4747
- id: check-github-actions
4848
- id: check-github-workflows
4949
- repo: https://github.com/pre-commit/mirrors-prettier
50-
rev: v3.0.0
50+
rev: v3.0.3
5151
hooks:
5252
- id: prettier
5353
types_or:

src/capacity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub(crate) struct AudioRenderCapacityLoad {
1313

1414
/// Options for constructing an `AudioRenderCapacity`
1515
pub struct AudioRenderCapacityOptions {
16-
/// An update interval (in seconds) for dispaching [`AudioRenderCapacityEvent`]s
16+
/// An update interval (in seconds) for dispatching [`AudioRenderCapacityEvent`]s
1717
pub update_interval: f64,
1818
}
1919

src/context/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub trait BaseAudioContext {
4545
///
4646
/// In addition to the official spec, the input parameter can be any byte stream (not just an
4747
/// array). This means you can decode audio data from a file, network stream, or in memory
48-
/// buffer, and any other [`std::io::Read`] implementor. The data if buffered internally so you
48+
/// buffer, and any other [`std::io::Read`] implementer. The data if buffered internally so you
4949
/// should not wrap the source in a `BufReader`.
5050
///
5151
/// This function operates synchronously, which may be undesirable on the control thread. The

src/decoding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use symphonia::core::formats::{FormatOptions, FormatReader};
1212
use symphonia::core::meta::MetadataOptions;
1313
use symphonia::core::probe::Hint;
1414

15-
/// Wrapper for `Read` implementors to be used in Symphonia decoding
15+
/// Wrapper for `Read` implementers to be used in Symphonia decoding
1616
///
1717
/// Symphonia requires its input to impl `Seek` - but allows non-seekable sources. Hence we
1818
/// implement Seek but return false for `is_seekable()`.
@@ -58,7 +58,7 @@ pub(crate) struct MediaDecoder {
5858
}
5959

6060
impl MediaDecoder {
61-
/// Try to construct a new instance from a `Read` implementor
61+
/// Try to construct a new instance from a `Read` implementer
6262
///
6363
/// # Errors
6464
///

src/node/delay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl AudioProcessor for DelayWriter {
355355
self.latest_frame_written.set(scope.current_frame);
356356

357357
// The writer end does not produce output,
358-
// clear the buffer so that it can be re-used
358+
// clear the buffer so that it can be reused
359359
output.make_silent();
360360

361361
// let the node be decommisioned if it has no input left

src/node/oscillator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl OscillatorNode {
244244
})
245245
}
246246

247-
/// A-rate [`AudioParam`] that defines the fondamental frequency of the
247+
/// A-rate [`AudioParam`] that defines the fundamental frequency of the
248248
/// oscillator, expressed in Hz
249249
///
250250
/// The final frequency is calculated as follow: frequency * 2^(detune/1200)

src/periodic_wave.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ mod tests {
294294

295295
for i in 0..TABLE_LENGTH_USIZE {
296296
let mut sample = 0.;
297-
// fondamental frequency
297+
// fundamental frequency
298298
sample += 0.5 * (1. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();
299299
// 1rst partial
300300
sample += 0.5 * (2. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();
@@ -334,7 +334,7 @@ mod tests {
334334

335335
for i in 0..TABLE_LENGTH_USIZE {
336336
let mut sample = 0.;
337-
// fondamental frequency
337+
// fundamental frequency
338338
sample += 0.5 * (1. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();
339339
// 1rst partial
340340
sample += 0.5 * (2. * i as f32 / TABLE_LENGTH_F32 * 2. * PI).sin();

src/render/quantum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl Alloc {
5858
impl AllocInner {
5959
fn allocate(&self) -> Rc<[f32; RENDER_QUANTUM_SIZE]> {
6060
if let Some(rc) = self.pool.borrow_mut().pop() {
61-
// re-use from pool
61+
// reuse from pool
6262
rc
6363
} else {
6464
// allocate

0 commit comments

Comments
 (0)