Skip to content

Commit 0f3e532

Browse files
committed
Modified Seq::default() to return af_span C equivalent
1 parent 417c581 commit 0f3e532

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/seq.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
extern crate libc;
22

33
use std::fmt;
4-
use std::ops::Index;
54
use std::default::Default;
65
use self::libc::{c_double};
76

@@ -15,13 +14,13 @@ pub struct Seq {
1514

1615
impl Default for Seq {
1716
fn default() -> Seq {
18-
Seq { begin: 0.0, end: 0.0, step: 0.0, }
17+
Seq { begin: 1.0, end: 1.0, step: 0.0, }
1918
}
2019
}
2120

2221
impl fmt::Display for Seq {
2322
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24-
write!(f, "[begin: {}, end: {}, step: {}", self.begin, self.end, self.step)
23+
write!(f, "[begin: {}, end: {}, step: {}]", self.begin, self.end, self.step)
2524
}
2625
}
2726

0 commit comments

Comments
 (0)