From 808e7ceeb86d4a319bdc270f51c23a64621dbfb3 Mon Sep 17 00:00:00 2001 From: John Downey Date: Sun, 13 Nov 2016 11:31:35 -0500 Subject: [PATCH] docs: fix broken docs links 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. --- src/args/arg.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/args/arg.rs b/src/args/arg.rs index dadfa37b2f9..a598887626c 100644 --- a/src/args/arg.rs +++ b/src/args/arg.rs @@ -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);