Skip to content

Commit df0ee65

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 1da1d34 commit df0ee65

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ pub trait Rand : Sized {
339339
/// }
340340
/// ```
341341
///
342-
/// [`RngCore`]: https://docs.rs/rand_core/0.1/rand_core/trait.RngCore.html
342+
/// [`RngCore`]: trait.RngCore.html
343343
pub trait Rng: RngCore {
344344
/// Return a random value supporting the [`Uniform`] distribution.
345345
///
@@ -423,7 +423,7 @@ pub trait Rng: RngCore {
423423
/// thread_rng().fill(&mut arr[..]);
424424
/// ```
425425
///
426-
/// [`fill_bytes`]: https://docs.rs/rand_core/0.1/rand_core/trait.RngCore.html#method.fill_bytes
426+
/// [`fill_bytes`]: trait.RngCore.html#method.fill_bytes
427427
/// [`try_fill`]: trait.Rng.html#method.try_fill
428428
/// [`AsByteSliceMut`]: trait.AsByteSliceMut.html
429429
fn fill<T: AsByteSliceMut + ?Sized>(&mut self, dest: &mut T) {
@@ -458,8 +458,8 @@ pub trait Rng: RngCore {
458458
/// # try_inner().unwrap()
459459
/// ```
460460
///
461-
/// [`ErrorKind`]: https://docs.rs/rand_core/0.1/rand_core/enum.ErrorKind.html
462-
/// [`try_fill_bytes`]: https://docs.rs/rand_core/0.1/rand_core/trait.RngCore.html#method.try_fill_bytes
461+
/// [`ErrorKind`]: enum.ErrorKind.html
462+
/// [`try_fill_bytes`]: trait.RngCore.html#method.try_fill_bytes
463463
/// [`fill`]: trait.Rng.html#method.fill
464464
/// [`AsByteSliceMut`]: trait.AsByteSliceMut.html
465465
fn try_fill<T: AsByteSliceMut + ?Sized>(&mut self, dest: &mut T) -> Result<(), Error> {
@@ -753,8 +753,8 @@ impl<R: RngCore> Iterator for AsciiGenerator<R> {
753753
/// ```
754754
///
755755
/// [`EntropyRng`]: struct.EntropyRng.html
756-
/// [`SeedableRng`]: https://docs.rs/rand_core/0.1/rand_core/trait.SeedableRng.html
757-
/// [`SeedableRng::from_seed`]: https://docs.rs/rand_core/0.1/rand_core/trait.SeedableRng.html#tymethod.from_seed
756+
/// [`SeedableRng`]: trait.SeedableRng.html
757+
/// [`SeedableRng::from_seed`]: trait.SeedableRng.html#tymethod.from_seed
758758
#[cfg(feature="std")]
759759
pub trait NewRng: SeedableRng {
760760
/// Creates a new instance, automatically seeded with fresh entropy.

0 commit comments

Comments
 (0)