Skip to content

Commit

Permalink
docs: fix broken docs links
Browse files Browse the repository at this point in the history
These links are relative to the root of the server instead of the
current file. This breaks causes them to be broken on docs.rs.
  • Loading branch information
jtdowney committed Nov 13, 2016
1 parent 7bf6f29 commit 808e7ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/args/arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2339,10 +2339,10 @@ impl<'a, 'b> Arg<'a, 'b> {
/// assert!(m.is_present("opt"));
/// assert_eq!(m.occurrences_of("opt"), 1);
/// ```
/// [`ArgMatches::occurrences_of`]: /struct.ArgMatches.html#method.occurrences_of
/// [`ArgMatches::occurrences_of`]: ./struct.ArgMatches.html#method.occurrences_of
/// [`ArgMatches::value_of`]: ./struct.ArgMatches.html#method.value_of
/// [`Arg::takes_value(true)`]: /struct.Arg.html#method.takes_value
/// [`ArgMatches::is_present`]: /struct.ArgMatches.html#method.is_present
/// [`Arg::takes_value(true)`]: ./struct.Arg.html#method.takes_value
/// [`ArgMatches::is_present`]: ./struct.ArgMatches.html#method.is_present
pub fn default_value(mut self, val: &'a str) -> Self {
self.setb(ArgSettings::TakesValue);
self.default_val = Some(val);
Expand Down

0 comments on commit 808e7ce

Please sign in to comment.