diff --git a/Sources/PFFFT/Buffer.swift b/Sources/PFFFT/Buffer.swift index 75a8eac..e4fe3b1 100644 --- a/Sources/PFFFT/Buffer.swift +++ b/Sources/PFFFT/Buffer.swift @@ -74,7 +74,7 @@ public extension Buffer where T: ComplexType { /// in the imaginary part of the 0th element. /// This enumerator works like `mapInPlace` but at the end places the real part of the /// n/2 component into the imaginary part of the 0th element. In normal use it is expected - /// that a spectral buffer of 1 extra element is created suct that `count == (n/2 + 1)`. + /// that a spectral buffer of 1 extra element is created such that `count == (n/2 + 1)`. /// - Parameter body: A closure that accepts a zero-based enumeration index. /// and must return a new value for the element at that index. /// `body` may throw and the error will be propagated to the caller. diff --git a/Sources/PFFFT/FFT.swift b/Sources/PFFFT/FFT.swift index 4f0f916..9cdd918 100644 --- a/Sources/PFFFT/FFT.swift +++ b/Sources/PFFFT/FFT.swift @@ -310,7 +310,7 @@ public struct FFT: ~Copyable { fatalError("signal buffer too small") } guard output.count >= n else { - fatalError("outputbuffer too small") + fatalError("output buffer too small") } ScalarType.pffftZreorder(ptr, spectrum.baseAddress, rebind(output), .forward) }