From e2df7322cdcc942c79b787973eb850fac32b4cf5 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sat, 20 Aug 2016 14:09:31 -0400 Subject: [PATCH] Make two docs links relative Fixes #131. --- src/ch05-01-method-syntax.md | 2 +- src/ch06-00-enums.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch05-01-method-syntax.md b/src/ch05-01-method-syntax.md index 21f5ec0db..be3804e0f 100644 --- a/src/ch05-01-method-syntax.md +++ b/src/ch05-01-method-syntax.md @@ -179,7 +179,7 @@ Because [`push_str()`] has the following signature: fn push_str(&mut self, string: &str) { ``` -[`push_str()`]: http://doc.rust-lang.org/collections/string/struct.String.html#method.push_str +[`push_str()`]: ../collections/string/struct.String.html#method.push_str This automatic referencing behavior works because methods have a clear receiver — the type of `self` — and in most cases it’s clear given the receiver and name diff --git a/src/ch06-00-enums.md b/src/ch06-00-enums.md index 40d30bbce..3807dded9 100644 --- a/src/ch06-00-enums.md +++ b/src/ch06-00-enums.md @@ -116,7 +116,7 @@ enum IpAddr { } ``` -[IpAddr]: http://doc.rust-lang.org/std/net/enum.IpAddr.html +[IpAddr]: ../std/net/enum.IpAddr.html Here’s an enum with a variety of types embedded in its variants: