Skip to content

Commit

Permalink
Fix assorted doc comment typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Sep 27, 2024
1 parent e89e5d7 commit 74bf584
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/hbf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait Filter {
///
/// Half-band filters (rate change of 2) and cascades of HBFs are implemented in
/// [`HbfDec`] and [`HbfInt`] etc.
/// The half-band filter has unique properties that make it preferrable in many cases:
/// The half-band filter has unique properties that make it preferable in many cases:
///
/// * only needs M multiplications (fused multiply accumulate) for 4*M taps
/// * HBF decimator stores less state than a generic FIR filter
Expand All @@ -74,7 +74,7 @@ pub trait Filter {
///
/// The implementations here are all `no_std` and `no-alloc`.
/// They support (but don't require) in-place filtering to reduce memory usage.
/// They unroll and optimmize extremely well targetting current architectures,
/// They unroll and optimize extremely well targetting current architectures,
/// e.g. requiring less than 4 instructions per input item for the full `HbfDecCascade` on Skylake.
/// The filters are optimized for decent block sizes and perform best (i.e. with negligible
/// overhead) for blocks of 32 high-rate items or more, depending very much on architecture.
Expand All @@ -91,7 +91,7 @@ impl<'a, T: Copy + Zero + Add + Mul<Output = T> + Sum, const M: usize, const N:
/// Create a new `SymFir`.
///
/// # Args
/// * `taps`: one-sided FIR coefficients, expluding center tap, oldest to one-before-center
/// * `taps`: one-sided FIR coefficients, excluding center tap, oldest to one-before-center
pub fn new(taps: &'a [T; M]) -> Self {
debug_assert!(N >= M * 2);
Self {
Expand Down
4 changes: 2 additions & 2 deletions src/iir/biquad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::Coefficient;
/// this allows clamping of the output before feedback.
///
/// DF1 allows atomic coefficient change because only inputs and outputs are pipelined.
/// The summing junctuion pipelining of TDF2 would require incremental
/// The summing junction pipelining of TDF2 would require incremental
/// coefficient changes and is thus less amenable to online tuning.
///
/// DF2T needs less state storage (2 instead of 4). This is in addition to the coefficient
Expand Down Expand Up @@ -99,7 +99,7 @@ use crate::Coefficient;
/// Therefore it can trivially implement bump-less transfer between any
/// coefficients/offset sets.
/// * Cascading multiple IIR filters allows stable and robust
/// implementation of transfer functions beyond bequadratic terms.
/// implementation of transfer functions beyond biquadratic terms.
#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, PartialOrd)]
pub struct Biquad<T> {
ba: [T; 5],
Expand Down
2 changes: 1 addition & 1 deletion src/rpll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// Consumes noisy, quantized timestamps of a reference signal and reconstructs
/// the phase and frequency of the update() invocations with respect to (and in units of
/// 1 << 32 of) that reference.
/// In other words, `update()` rate ralative to reference frequency,
/// In other words, `update()` rate relative to reference frequency,
/// `u32::MAX` corresponding to both being equal.
#[derive(Copy, Clone, Default)]
pub struct RPLL {
Expand Down

0 comments on commit 74bf584

Please sign in to comment.