Browse Source

Remove panics from descriptions

master
Ivan Ukhov 9 years ago
parent
commit
7b23ba592c
  1. 8
      src/lib.rs

8
src/lib.rs

@ -14,10 +14,6 @@ pub use complex::c64;
/// Perform the forward transform.
///
/// The number of points should be a power of two.
///
/// ## Panics
///
/// The function panics if the number of points is not a power of two.
pub fn forward(data: &mut [c64]) {
let n = data.len();
if n < 1 || n & (n - 1) != 0 {
@ -30,10 +26,6 @@ pub fn forward(data: &mut [c64]) {
/// Perform the inverse transform.
///
/// The number of points should be a power of two.
///
/// ## Panics
///
/// The function panics if the number of points is not a power of two.
pub fn inverse(data: &mut [c64], scaling: bool) {
let n = data.len();
if n < 1 || n & (n - 1) != 0 {

Loading…
Cancel
Save