Skip to content

Commit

Permalink
fix(value_t_or_exit): fixes typo which causes value_t_or_exit to retu…
Browse files Browse the repository at this point in the history
…rn a Result
  • Loading branch information
kbknapp committed Feb 2, 2016
1 parent f86a183 commit ee96baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ macro_rules! value_t {
#[macro_export]
macro_rules! value_t_or_exit {
($m:ident, $v:expr, $t:ty) => {
value_t!($m.value_of($v), $t)
value_t_or_exit!($m.value_of($v), $t)
};
($m:ident.value_of($v:expr), $t:ty) => {
if let Some(v) = $m.value_of($v) {
Expand Down

0 comments on commit ee96baf

Please sign in to comment.