diff options
| author | Simon Mazur <semmaz.box@gmail.com> | 2015-09-18 17:12:58 +0300 |
|---|---|---|
| committer | Simon Mazur <semmaz.box@gmail.com> | 2015-09-20 13:24:47 +0300 |
| commit | 970b86b1bb61eeff8b32372e2a1d5486945f47d1 (patch) | |
| tree | b3898831b88cbbd5988e46010cc6cee9271c2c89 /src/doc/style | |
| parent | b8cfa59be0a6b5200e525ff68390ede34698e909 (diff) | |
| download | rust-970b86b1bb61eeff8b32372e2a1d5486945f47d1.tar.gz rust-970b86b1bb61eeff8b32372e2a1d5486945f47d1.zip | |
doc: Fix broken links
Diffstat (limited to 'src/doc/style')
| -rw-r--r-- | src/doc/style/errors/ergonomics.md | 2 | ||||
| -rw-r--r-- | src/doc/style/features/traits/generics.md | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/style/errors/ergonomics.md b/src/doc/style/errors/ergonomics.md index 0985475f56a..a404d25bf37 100644 --- a/src/doc/style/errors/ergonomics.md +++ b/src/doc/style/errors/ergonomics.md @@ -57,7 +57,7 @@ fn write_info(info: &Info) -> Result<(), IoError> { ``` See -[the `result` module documentation](https://doc.rust-lang.org/stable/std/result/index.html#the-try!-macro) +[the `result` module documentation](https://doc.rust-lang.org/stable/std/result/index.html#the-try-macro) for more details. ### The `Result`-`impl` pattern [FIXME] diff --git a/src/doc/style/features/traits/generics.md b/src/doc/style/features/traits/generics.md index 2d9356fc42d..26ffda50ac5 100644 --- a/src/doc/style/features/traits/generics.md +++ b/src/doc/style/features/traits/generics.md @@ -27,7 +27,7 @@ explicitly implement to be used by this generic function. * _Inference_. Since the type parameters to generic functions can usually be inferred, generic functions can help cut down on verbosity in code where explicit conversions or other method calls would usually be necessary. See the - [overloading/implicits use case](#use-case:-limited-overloading-and/or-implicit-conversions) + [overloading/implicits use case](#use-case-limited-overloading-andor-implicit-conversions) below. * _Precise types_. Because generics give a _name_ to the specific type implementing a trait, it is possible to be precise about places where that @@ -51,7 +51,7 @@ explicitly implement to be used by this generic function. a `Vec<T>` contains elements of a single concrete type (and, indeed, the vector representation is specialized to lay these out in line). Sometimes heterogeneous collections are useful; see - [trait objects](#use-case:-trait-objects) below. + [trait objects](#use-case-trait-objects) below. * _Signature verbosity_. Heavy use of generics can bloat function signatures. **[Ed. note]** This problem may be mitigated by some language improvements; stay tuned. |
