Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/example1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn main()
let matches = match getopts(args.tail(), opts)
{
Ok(m) => m,
Err(f) => fail!("{}", f)
Err(f) => panic!("{}", f)
};
if matches.opt_present("h")
{
Expand Down
2 changes: 1 addition & 1 deletion examples/example2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn main()
let matches = match getopts(args.tail(), opts)
{
Ok(m) => m,
Err(f) => fail!("{}", f)
Err(f) => panic!("{}", f)
};
if matches.opt_present("h")
{
Expand Down
2 changes: 1 addition & 1 deletion examples/example3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn main()
let matches = match getopts(args.tail(), opts)
{
Ok(m) => m,
Err(f) => fail!("{}", f)
Err(f) => panic!("{}", f)
};
if matches.opt_present("h")
{
Expand Down
6 changes: 3 additions & 3 deletions src/axes_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl AxisData
{
if incr <= 0.0
{
fail!("'incr' must be positive, but is actually {}", incr);
panic!("'incr' must be positive, but is actually {}", incr);
}
c.write_str(" ");
write!(&mut *c, " {:.12e}", incr);
Expand Down Expand Up @@ -541,7 +541,7 @@ pub fn char_to_symbol(c: char) -> i32
'D' => 11,
'r' => 12,
'R' => 13,
a => fail!("Invalid symbol {}", a)
a => panic!("Invalid symbol {}", a)
}
}

Expand Down Expand Up @@ -911,7 +911,7 @@ impl AxesCommonData
ZLabel => "zlabel",
TitleLabel => "title",
Label(..) => "label",
_ => fail!("Invalid label type")
_ => panic!("Invalid label type")
};
c.write_str(label_str);

Expand Down
4 changes: 2 additions & 2 deletions src/figure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Figure
match self.axes.as_mut_slice()[l - 1]
{
Axes2DType(ref mut a) => a,
_ => fail!()
_ => panic!()
}
}

Expand All @@ -95,7 +95,7 @@ impl Figure
match self.axes.as_mut_slice()[l - 1]
{
Axes3DType(ref mut a) => a,
_ => fail!()
_ => panic!()
}
}

Expand Down