Skip to content

Commit e2df732

Browse files
committed
Make two docs links relative
Fixes #131.
1 parent 7bfbc68 commit e2df732

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/ch05-01-method-syntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Because [`push_str()`] has the following signature:
179179
fn push_str(&mut self, string: &str) {
180180
```
181181

182-
[`push_str()`]: http://doc.rust-lang.org/collections/string/struct.String.html#method.push_str
182+
[`push_str()`]: ../collections/string/struct.String.html#method.push_str
183183

184184
This automatic referencing behavior works because methods have a clear receiver
185185
— the type of `self` — and in most cases it’s clear given the receiver and name

Diff for: src/ch06-00-enums.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ enum IpAddr {
116116
}
117117
```
118118

119-
[IpAddr]: http://doc.rust-lang.org/std/net/enum.IpAddr.html
119+
[IpAddr]: ../std/net/enum.IpAddr.html
120120

121121
Here’s an enum with a variety of types embedded in its variants:
122122

0 commit comments

Comments
 (0)