From e657a81c2b325fe455dd5c544f7b4fb8ee86db2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 21 Oct 2024 15:42:25 +0300 Subject: [PATCH] Fix intra-crate links --- README.md | 8 +++----- src/lib.rs | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ddb1a412..498f9e56 100644 --- a/README.md +++ b/README.md @@ -33,11 +33,6 @@ fn get_random_buf() -> Result<[u8; 32], getrandom::Error> { } ``` -For more information about supported targets, entropy sources, `no_std` targets, -crate features, WASM support and Custom RNGs see the -[`getrandom` documentation](https://docs.rs/getrandom/latest) and -[`getrandom::Error` documentation](https://docs.rs/getrandom/latest/getrandom/struct.Error.html). - ## Supported targets | Target | Target Triple | Implementation @@ -339,3 +334,6 @@ dual licensed as above, without any additional terms or conditions. [LICENSE-APACHE]: https://github.com/rust-random/getrandom/blob/master/LICENSE-APACHE [LICENSE-MIT]: https://github.com/rust-random/getrandom/blob/master/LICENSE-MIT + +[`Error::UNEXPECTED`]: https://docs.rs/getrandom/latest/getrandom/struct.Error.html#associatedconstant.UNEXPECTED +[`fill_uninit`]: https://docs.rs/getrandom/latest/getrandom/fn.fill_uninit.html diff --git a/src/lib.rs b/src/lib.rs index e96f6386..bc7b3570 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,7 @@ +// Overwrite links to crate items with intra-crate links +//! [`Error::UNEXPECTED`]: Error::UNEXPECTED +//! [`fill_uninit`]: fill_uninit + #![no_std] #![doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",