Skip to content

Commit bbbfed2

Browse files
committed
Use https URLs to refer to rust-lang.org where appropriate.
Also fixes a few outdated links.
1 parent febdc3b commit bbbfed2

File tree

57 files changed

+185
-206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+185
-206
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ hop on [#rust-internals][pound-rust-internals].
1717
As a reminder, all contributors are expected to follow our [Code of Conduct][coc].
1818

1919
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
20-
[internals]: http://internals.rust-lang.org
21-
[coc]: http://www.rust-lang.org/conduct.html
20+
[internals]: https://internals.rust-lang.org
21+
[coc]: https://www.rust-lang.org/conduct.html
2222

2323
## Feature Requests
2424

@@ -207,6 +207,6 @@ it to [Crates.io](http://crates.io). Easier said than done, but very, very
207207
valuable!
208208

209209
[pound-rust]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
210-
[users]: http://users.rust-lang.org/
210+
[users]: https://users.rust-lang.org/
211211
[so]: http://stackoverflow.com/questions/tagged/rust
212212
[community-library]: https://github.com/rust-lang/rfcs/labels/A-community-library

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ as standard libraries, tools and documentation for Rust.
1313

1414
Read ["Installing Rust"] from [The Book].
1515

16-
["Installing Rust"]: http://doc.rust-lang.org/book/installing-rust.html
17-
[The Book]: http://doc.rust-lang.org/book/index.html
16+
["Installing Rust"]: https://doc.rust-lang.org/book/installing-rust.html
17+
[The Book]: https://doc.rust-lang.org/book/index.html
1818

1919
## Building from Source
2020

@@ -117,7 +117,7 @@ The Rust community congregates in a few places:
117117

118118
[Stack Overflow]: http://stackoverflow.com/questions/tagged/rust
119119
[/r/rust]: http://reddit.com/r/rust
120-
[users.rust-lang.org]: http://users.rust-lang.org/
120+
[users.rust-lang.org]: https://users.rust-lang.org/
121121

122122
## Contributing
123123

RELEASES.md

+55-55
Original file line numberDiff line numberDiff line change
@@ -102,51 +102,51 @@ Misc
102102
* Fat pointers are now [passed in pairs of immediate arguments][fat],
103103
resulting in faster compile times and smaller code.
104104

105-
[`Extend`]: http://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
105+
[`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
106106
[extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
107-
[`iter::once`]: http://doc.rust-lang.org/nightly/std/iter/fn.once.html
108-
[`iter::empty`]: http://doc.rust-lang.org/nightly/std/iter/fn.empty.html
109-
[`matches`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
110-
[`rmatches`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
111-
[`Cell`]: http://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
112-
[`RefCell`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
113-
[`wrapping_add`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
114-
[`wrapping_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
115-
[`wrapping_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
116-
[`wrapping_div`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
117-
[`wrapping_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
118-
[`wrapping_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
119-
[`wrapping_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
120-
[`wrapping_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
121-
[`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
122-
[`fmt::Formatter`]: http://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
123-
[`fmt::Write`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
124-
[`io::Write`]: http://doc.rust-lang.org/nightly/std/io/trait.Write.html
125-
[`debug_struct`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
126-
[`debug_tuple`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
127-
[`debug_list`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
128-
[`debug_set`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
129-
[`debug_map`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
130-
[`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
131-
[strup]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
132-
[strlow]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
133-
[`to_uppercase`]: http://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
134-
[`to_lowercase`]: http://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
135-
[`PoisonError`]: http://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
136-
[`RwLock`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
137-
[`Mutex`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
138-
[`FromRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
139-
[`AsRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
140-
[`Stdio`]: http://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
141-
[`ChildStdin`]: http://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
142-
[`ChildStdout`]: http://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
143-
[`ChildStderr`]: http://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
144-
[`io::ErrorKind`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
107+
[`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
108+
[`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
109+
[`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
110+
[`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
111+
[`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
112+
[`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
113+
[`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
114+
[`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
115+
[`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
116+
[`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
117+
[`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
118+
[`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
119+
[`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
120+
[`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
121+
[`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
122+
[`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
123+
[`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
124+
[`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
125+
[`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
126+
[`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
127+
[`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
128+
[`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
129+
[`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
130+
[`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
131+
[strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
132+
[strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
133+
[`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
134+
[`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
135+
[`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
136+
[`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
137+
[`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
138+
[`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
139+
[`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
140+
[`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
141+
[`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
142+
[`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
143+
[`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
144+
[`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
145145
[debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
146-
[`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
147-
[`mem::align_of`]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
146+
[`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
147+
[`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
148148
[align]: https://github.com/rust-lang/rust/pull/25646
149-
[`mem::min_align_of`]: http://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
149+
[`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
150150
[typos]: https://github.com/rust-lang/rust/pull/26087
151151
[nop]: https://github.com/rust-lang/rust/pull/26336
152152
[fat]: https://github.com/rust-lang/rust/pull/26411
@@ -237,14 +237,14 @@ Misc
237237
* [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
238238
with `Drop`][drop].
239239

240-
[`str::split_whitespace`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
241-
[`FromRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
242-
[`AsRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
243-
[`std::os::unix::symlink`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
244-
[`IntoIterator`]: http://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
245-
[`From`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html
240+
[`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
241+
[`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
242+
[`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
243+
[`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
244+
[`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
245+
[`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
246246
[rf]: https://github.com/rust-lang/rust/pull/24491
247-
[err-index]: http://doc.rust-lang.org/error-index.html
247+
[err-index]: https://doc.rust-lang.org/error-index.html
248248
[sk]: https://github.com/rust-lang/rust/pull/24615
249249
[pre]: https://github.com/rust-lang/rust/pull/25323
250250
[file]: https://github.com/rust-lang/rust/pull/24598
@@ -258,13 +258,13 @@ Misc
258258
[pie]: https://github.com/rust-lang/rust/pull/24953
259259
[abs]: https://github.com/rust-lang/rust/pull/25441
260260
[c]: https://github.com/rust-lang/rust/pull/25496
261-
[`Cloned`]: http://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
262-
[`Incoming`]: http://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
261+
[`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
262+
[`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
263263
[inc]: https://github.com/rust-lang/rust/pull/25522
264264
[bh]: https://github.com/rust-lang/rust/pull/25856
265-
[`BinaryHeap`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
265+
[`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
266266
[ll]: https://github.com/rust-lang/rust/pull/26022
267-
[`split_off`]: http://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
267+
[`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
268268
[drop]: https://github.com/rust-lang/rust/pull/24935
269269

270270
Version 1.0.0 (May 2015)
@@ -508,7 +508,7 @@ Version 1.0.0-alpha.2 (February 2015)
508508
[drop]: https://github.com/rust-lang/rust/pull/21972
509509
[drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
510510
[feat]: https://github.com/rust-lang/rust/pull/21248
511-
[feat-forum]: http://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
511+
[feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
512512
[feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
513513
[fmt]: https://github.com/rust-lang/rust/pull/21457
514514
[into]: https://github.com/rust-lang/rust/pull/20790
@@ -709,7 +709,7 @@ Version 1.0.0-alpha (January 2015)
709709
[objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
710710
[assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
711711
[ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
712-
[trpl]: http://doc.rust-lang.org/book/index.html
712+
[trpl]: https://doc.rust-lang.org/book/index.html
713713
[rbe]: http://rustbyexample.com/
714714

715715

mk/docs.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ L10N_LANGS := ja
4848
RUSTDOC_HTML_OPTS_NO_CSS = --html-before-content=doc/version_info.html \
4949
--html-in-header=doc/favicon.inc \
5050
--html-after-content=doc/footer.inc \
51-
--markdown-playground-url='http://play.rust-lang.org/'
51+
--markdown-playground-url='https://play.rust-lang.org/'
5252

5353
RUSTDOC_HTML_OPTS = $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css rust.css
5454

@@ -169,7 +169,7 @@ doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
169169
@$(call E, rustdoc: $@)
170170
$(Q)$(RUSTDOC) $(RUSTDOC_HTML_OPTS_NO_CSS) \
171171
--markdown-no-toc \
172-
--markdown-css http://doc.rust-lang.org/rust.css $<
172+
--markdown-css https://doc.rust-lang.org/rust.css $<
173173

174174
define DEF_DOC
175175

src/doc/favicon.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico">
1+
<link rel="shortcut icon" href="https://www.rust-lang.org/favicon.ico">

src/doc/not_found.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Some things that might be helpful to you though:
2121

2222
# Reference
2323

24-
* [The Rust official site](http://rust-lang.org)
25-
* [The Rust reference](http://doc.rust-lang.org/reference.html)
24+
* [The Rust official site](https://www.rust-lang.org)
25+
* [The Rust reference](https://doc.rust-lang.org/reference.html)
2626

2727
# Docs
2828

29-
* [The standard library](http://doc.rust-lang.org/std/)
29+
* [The standard library](https://doc.rust-lang.org/std/)
3030

3131
<script>
3232
function get_url_fragments() {
@@ -58,7 +58,7 @@ function populate_rust_search() {
5858
// #18540, use a single token
5959

6060
var a = document.createElement("a");
61-
a.href = "http://doc.rust-lang.org/core/?search=" + encodeURIComponent(lt);
61+
a.href = "https://doc.rust-lang.org/core/?search=" + encodeURIComponent(lt);
6262
a.textContent = lt;
6363
var search = document.getElementById('core-search');
6464
search.innerHTML = "";

src/doc/style/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Every guideline has a status:
2626

2727
One purpose of these guidelines is to reach decisions on a number of
2828
cross-cutting API and stylistic choices. Discussion and development of
29-
the guidelines will happen primarily on http://discuss.rust-lang.org/,
29+
the guidelines will happen primarily on https://internals.rust-lang.org/,
3030
using the Guidelines category. Discussion can also occur on the
3131
[guidelines issue tracker](https://github.com/rust-lang/rust-guidelines).
3232

src/doc/style/errors/ergonomics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn write_info(info: &Info) -> Result<(), IoError> {
5757
```
5858

5959
See
60-
[the `result` module documentation](http://static.rust-lang.org/doc/master/std/result/index.html#the-try!-macro)
60+
[the `result` module documentation](https://doc.rust-lang.org/stable/std/result/index.html#the-try!-macro)
6161
for more details.
6262

6363
### The `Result`-`impl` pattern [FIXME]

src/doc/style/errors/signaling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ aspects of the input that are not covered by the contract.
9494
### For obstructions, use `Result`
9595

9696
The
97-
[`Result<T,E>` type](http://static.rust-lang.org/doc/master/std/result/index.html)
97+
[`Result<T,E>` type](https://doc.rust-lang.org/stable/std/result/index.html)
9898
represents either a success (yielding `T`) or failure (yielding `E`). By
9999
returning a `Result`, a function allows its clients to discover and react to
100100
obstructions in a fine-grained way.

src/doc/style/features/functions-and-methods/input.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ that the caller already owns, for example to re-use a buffer:
124124
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize>
125125
```
126126

127-
(From the [Reader trait](http://static.rust-lang.org/doc/master/std/io/trait.Reader.html#tymethod.read).)
127+
(From the [Read trait](https://doc.rust-lang.org/stable/std/io/trait.Read.html#tymethod.read).)
128128

129129
### Consider validating arguments, statically or dynamically. [FIXME: needs RFC]
130130

131131
_Note: this material is closely related to
132132
[library-level guarantees](../../safety/lib-guarantees.md)._
133133

134134
Rust APIs do _not_ generally follow the
135-
[robustness principle](http://en.wikipedia.org/wiki/Robustness_principle): "be
135+
[robustness principle](https://en.wikipedia.org/wiki/Robustness_principle): "be
136136
conservative in what you send; be liberal in what you accept".
137137
138138
Instead, Rust code should _enforce_ the validity of input whenever practical.
@@ -156,8 +156,7 @@ over
156156
fn foo(a: u8) { ... }
157157
```
158158
159-
Note that
160-
[`ascii::Ascii`](http://static.rust-lang.org/doc/master/std/ascii/struct.Ascii.html)
159+
Note that `ascii::Ascii`
161160
is a _wrapper_ around `u8` that guarantees the highest bit is zero; see
162161
[newtype patterns](../types/newtype.md) for more details on creating typesafe wrappers.
163162

src/doc/style/features/modules.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ For modules that themselves have submodules, place the module in a separate
5858
directory (e.g., `bar/mod.rs` for a module `bar`) rather than the same directory.
5959

6060
Note the structure of
61-
[`std::io`](http://doc.rust-lang.org/std/io/). Many of the submodules lack
61+
[`std::io`](https://doc.rust-lang.org/std/io/). Many of the submodules lack
6262
children, like
63-
[`io::fs`](http://doc.rust-lang.org/std/io/fs/)
63+
[`io::fs`](https://doc.rust-lang.org/std/io/fs/)
6464
and
65-
[`io::stdio`](http://doc.rust-lang.org/std/io/stdio/).
65+
[`io::stdio`](https://doc.rust-lang.org/std/io/stdio/).
6666
On the other hand,
67-
[`io::net`](http://doc.rust-lang.org/std/io/net/)
67+
[`io::net`](https://doc.rust-lang.org/std/io/net/)
6868
contains submodules, so it lives in a separate directory:
6969

7070
```
@@ -88,7 +88,7 @@ submodules of `io::net` easier to find.
8888
### Consider top-level definitions or reexports. [FIXME: needs RFC]
8989

9090
For modules with submodules,
91-
define or [reexport](http://doc.rust-lang.org/std/io/#reexports) commonly used
91+
define or [reexport](https://doc.rust-lang.org/std/io/#reexports) commonly used
9292
definitions at the top level:
9393

9494
* Functionality relevant to the module itself or to many of its
@@ -98,10 +98,10 @@ definitions at the top level:
9898
common definitions.
9999

100100
For example,
101-
[`IoError`](http://doc.rust-lang.org/std/io/struct.IoError.html)
101+
[`IoError`](https://doc.rust-lang.org/std/io/struct.IoError.html)
102102
is defined in `io/mod.rs`, since it pertains to the entirety of `io`,
103103
while
104-
[`TcpStream`](http://doc.rust-lang.org/std/io/net/tcp/struct.TcpStream.html)
104+
[`TcpStream`](https://doc.rust-lang.org/std/io/net/tcp/struct.TcpStream.html)
105105
is defined in `io/net/tcp.rs` and reexported in the `io` module.
106106

107107
### Use internal module hirearchies for organization. [FIXME: needs RFC]
@@ -113,11 +113,11 @@ is defined in `io/net/tcp.rs` and reexported in the `io` module.
113113
Internal module hirearchies (i.e., private submodules) may be used to
114114
hide implementation details that are not part of the module's API.
115115

116-
For example, in [`std::io`](http://doc.rust-lang.org/std/io/), `mod mem`
116+
For example, in [`std::io`](https://doc.rust-lang.org/std/io/), `mod mem`
117117
provides implementations for
118-
[`BufReader`](http://doc.rust-lang.org/std/io/struct.BufReader.html)
118+
[`BufReader`](https://doc.rust-lang.org/std/io/struct.BufReader.html)
119119
and
120-
[`BufWriter`](http://doc.rust-lang.org/std/io/struct.BufWriter.html),
120+
[`BufWriter`](https://doc.rust-lang.org/std/io/struct.BufWriter.html),
121121
but these are re-exported in `io/mod.rs` at the top level of the module:
122122

123123
```rust

src/doc/style/ownership/builders.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ treatment of ownership, as described below.
3232

3333
In some cases, constructing the final `T` does not require the builder itself to
3434
be consumed. The follow variant on
35-
[`std::io::process::Command`](http://static.rust-lang.org/doc/master/std/io/process/struct.Command.html)
35+
[`std::process::Command`](https://doc.rust-lang.org/stable/std/process/struct.Command.html)
3636
is one example:
3737

3838
```rust

0 commit comments

Comments
 (0)