Skip to content

Commit

Permalink
fix(tests): fix failing doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Apr 13, 2015
1 parent 79e26a6 commit 3710cd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clap-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ version = "0.0.1"
authors = ["Kevin K. <[email protected]>"]

[dependencies.clap]
git = "file:/home/kevin/Projects/clap-rs"
branch = "from-usage"
git = "https://github.com/kbknapp/clap-rs"
branch = "master"
4 changes: 2 additions & 2 deletions src/args/arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ impl<'n, 'l, 'h, 'b, 'p, 'r> Arg<'n, 'l, 'h, 'b, 'p, 'r> {
/// // A required positional argument named "input"
/// Arg::from_usage("<input> 'the input file to use'")
/// ])
/// # .short("c")
/// # ).get_matches();
/// #
/// # .get_matches();
pub fn from_usage(u: &'n str) -> Arg<'n, 'n, 'n, 'b, 'p, 'r> {
assert!(u.len() > 0, "Arg::from_usage() requires a non-zero-length usage string but none was provided");

Expand Down

0 comments on commit 3710cd6

Please sign in to comment.