mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 03:34:31 -06:00
fix couple typos
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -310,7 +310,7 @@ public struct FFT<T: FFTElement>: ~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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user