From 59dac5d33ddf21eb23ac3689950fb5e31fcc585f Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 17 Sep 2019 09:37:37 -0700 Subject: [PATCH] Fix some broken links. --- src/conversion/try_from_try_into.md | 2 +- src/fn/closures/output_parameters.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/conversion/try_from_try_into.md b/src/conversion/try_from_try_into.md index 9e3242895b..230600bf64 100644 --- a/src/conversion/try_from_try_into.md +++ b/src/conversion/try_from_try_into.md @@ -5,7 +5,7 @@ generic traits for converting between types. Unlike `From`/`Into`, the `TryFrom`/`TryInto` traits are used for fallible conversions, and as such, return [`Result`]s. -[from-into]: conversion/from_into.html +[from-into]: from_into.html [`TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html [`TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html [`Result`]: https://doc.rust-lang.org/std/result/enum.Result.html diff --git a/src/fn/closures/output_parameters.md b/src/fn/closures/output_parameters.md index e12e6049ef..4ac4dd0c4a 100644 --- a/src/fn/closures/output_parameters.md +++ b/src/fn/closures/output_parameters.md @@ -1,8 +1,8 @@ # As output parameters -Closures as input parameters are possible, so returning closures as -output parameters should also be possible. However, anonymous -closure types are, by definition, unknown, so we have to use +Closures as input parameters are possible, so returning closures as +output parameters should also be possible. However, anonymous +closure types are, by definition, unknown, so we have to use `impl Trait` to return them. The valid traits for returns are slightly different than before: @@ -46,6 +46,6 @@ fn main() { [fn]: https://doc.rust-lang.org/std/ops/trait.Fn.html [fnmut]: https://doc.rust-lang.org/std/ops/trait.FnMut.html -[fnbox]: https://doc.rust-lang.org/std/boxed/trait.FnBox.html +[fnbox]: https://doc.rust-lang.org/std/boxed/trait.FnBox.html [generics]: ../../generics.md -[impltrait]: ../../traits/impl_trait.md +[impltrait]: ../../trait/impl_trait.md