Make two docs links relative

Fixes #131.
This commit is contained in:
Carol (Nichols || Goulding)
2016-08-20 14:09:31 -04:00
parent 7bfbc68a4f
commit e2df7322cd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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: