fix couple typos

This commit is contained in:
2024-11-02 02:21:18 -05:00
parent 437f984b11
commit fa3bce9237
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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)
}