diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000000..5705ce0d13a --- /dev/null +++ b/netlify.toml @@ -0,0 +1,16 @@ +[build] + command = """ + rustup install nightly --profile minimal && cargo doc --no-deps --all-features + """ + publish = "target/doc" + +[build.environment] + RUSTDOCFLAGS=""" + --cfg docsrs \ + --cfg tokio_unstable \ + """ + RUSTFLAGS="--cfg tokio_unstable --cfg docsrs" + +[[redirects]] + from = "/" + to = "/tokio" diff --git a/tokio/src/macros/join.rs b/tokio/src/macros/join.rs index ab85cdec26f..9697936c895 100644 --- a/tokio/src/macros/join.rs +++ b/tokio/src/macros/join.rs @@ -12,7 +12,7 @@ /// for **all** branches complete regardless if any complete with `Err`. Use /// [`try_join!`] to return early when `Err` is encountered. /// -/// [`try_join!`]: macro@try_join +/// [`try_join!`]: crate::try_join /// /// # Notes ///