Skip to content

Commit 5680f6f

Browse files
committed
Remove hardcode docs.rs links to rand_core
These traits/methods etc. are re-exported by Rand, so we can just link to ours.
1 parent 5f47ebf commit 5680f6f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub trait Rand : Sized {
312312
/// # let v = foo(&mut thread_rng());
313313
/// ```
314314
///
315-
/// [`RngCore`]: https://docs.rs/rand_core/0.1/rand_core/trait.RngCore.html
315+
/// [`RngCore`]: trait.RngCore.html
316316
pub trait Rng: RngCore {
317317
/// Fill `dest` entirely with random bytes (uniform value distribution),
318318
/// where `dest` is any type supporting [`AsByteSliceMut`], namely slices
@@ -334,7 +334,7 @@ pub trait Rng: RngCore {
334334
/// thread_rng().fill(&mut arr[..]);
335335
/// ```
336336
///
337-
/// [`fill_bytes`]: https://docs.rs/rand_core/0.1/rand_core/trait.RngCore.html#method.fill_bytes
337+
/// [`fill_bytes`]: trait.RngCore.html#method.fill_bytes
338338
/// [`try_fill`]: trait.Rng.html#method.try_fill
339339
/// [`AsByteSliceMut`]: trait.AsByteSliceMut.html
340340
fn fill<T: AsByteSliceMut + ?Sized>(&mut self, dest: &mut T) {
@@ -369,8 +369,8 @@ pub trait Rng: RngCore {
369369
/// # try_inner().unwrap()
370370
/// ```
371371
///
372-
/// [`ErrorKind`]: https://docs.rs/rand_core/0.1/rand_core/enum.ErrorKind.html
373-
/// [`try_fill_bytes`]: https://docs.rs/rand_core/0.1/rand_core/trait.RngCore.html#method.try_fill_bytes
372+
/// [`ErrorKind`]: enum.ErrorKind.html
373+
/// [`try_fill_bytes`]: trait.RngCore.html#method.try_fill_bytes
374374
/// [`fill`]: trait.Rng.html#method.fill
375375
/// [`AsByteSliceMut`]: trait.AsByteSliceMut.html
376376
fn try_fill<T: AsByteSliceMut + ?Sized>(&mut self, dest: &mut T) -> Result<(), Error> {
@@ -784,8 +784,8 @@ impl<R: RngCore> Iterator for AsciiGenerator<R> {
784784
/// ```
785785
///
786786
/// [`EntropyRng`]: struct.EntropyRng.html
787-
/// [`SeedableRng`]: https://docs.rs/rand_core/0.1/rand_core/trait.SeedableRng.html
788-
/// [`SeedableRng::from_seed`]: https://docs.rs/rand_core/0.1/rand_core/trait.SeedableRng.html#tymethod.from_seed
787+
/// [`SeedableRng`]: trait.SeedableRng.html
788+
/// [`SeedableRng::from_seed`]: trait.SeedableRng.html#tymethod.from_seed
789789
#[cfg(feature="std")]
790790
pub trait NewRng: SeedableRng {
791791
/// Creates a new instance, automatically seeded with fresh entropy.

0 commit comments

Comments
 (0)