Prefer https link for wikipedia URLs

This commit is contained in:
Lzu Tao 2020-08-23 10:02:42 +00:00
parent d5abc8d3b2
commit 2c995d29f7
8 changed files with 12 additions and 12 deletions

View File

@ -12,9 +12,9 @@
//! to solve the [shortest path problem][sssp] on a [directed graph][dir_graph]. //! to solve the [shortest path problem][sssp] on a [directed graph][dir_graph].
//! It shows how to use [`BinaryHeap`] with custom types. //! It shows how to use [`BinaryHeap`] with custom types.
//! //!
//! [dijkstra]: http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm //! [dijkstra]: https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
//! [sssp]: http://en.wikipedia.org/wiki/Shortest_path_problem //! [sssp]: https://en.wikipedia.org/wiki/Shortest_path_problem
//! [dir_graph]: http://en.wikipedia.org/wiki/Directed_graph //! [dir_graph]: https://en.wikipedia.org/wiki/Directed_graph
//! [`BinaryHeap`]: struct.BinaryHeap.html //! [`BinaryHeap`]: struct.BinaryHeap.html
//! //!
//! ``` //! ```

View File

@ -25,7 +25,7 @@
use self::Ordering::*; use self::Ordering::*;
/// Trait for equality comparisons which are [partial equivalence /// Trait for equality comparisons which are [partial equivalence
/// relations](http://en.wikipedia.org/wiki/Partial_equivalence_relation). /// relations](https://en.wikipedia.org/wiki/Partial_equivalence_relation).
/// ///
/// This trait allows for partial equality, for types that do not have a full /// This trait allows for partial equality, for types that do not have a full
/// equivalence relation. For example, in floating point numbers `NaN != NaN`, /// equivalence relation. For example, in floating point numbers `NaN != NaN`,

View File

@ -131,7 +131,7 @@ impl Barrier {
lock.count += 1; lock.count += 1;
if lock.count < self.num_threads { if lock.count < self.num_threads {
// We need a while loop to guard against spurious wakeups. // We need a while loop to guard against spurious wakeups.
// http://en.wikipedia.org/wiki/Spurious_wakeup // https://en.wikipedia.org/wiki/Spurious_wakeup
while local_gen == lock.generation_id && lock.count < self.num_threads { while local_gen == lock.generation_id && lock.count < self.num_threads {
lock = self.cvar.wait(lock).unwrap(); lock = self.cvar.wait(lock).unwrap();
} }

View File

@ -84,7 +84,7 @@ pub trait Stats {
/// by the constant `1.4826` to allow its use as a consistent estimator for the standard /// by the constant `1.4826` to allow its use as a consistent estimator for the standard
/// deviation. /// deviation.
/// ///
/// See: <http://en.wikipedia.org/wiki/Median_absolute_deviation> /// See: <https://en.wikipedia.org/wiki/Median_absolute_deviation>
fn median_abs_dev(&self) -> f64; fn median_abs_dev(&self) -> f64;
/// Median absolute deviation as a percent of the median. See `median_abs_dev` and `median`. /// Median absolute deviation as a percent of the median. See `median_abs_dev` and `median`.
@ -96,7 +96,7 @@ pub trait Stats {
/// ///
/// Calculated by linear interpolation between closest ranks. /// Calculated by linear interpolation between closest ranks.
/// ///
/// See: <http://en.wikipedia.org/wiki/Percentile> /// See: <https://en.wikipedia.org/wiki/Percentile>
fn percentile(&self, pct: f64) -> f64; fn percentile(&self, pct: f64) -> f64;
/// Quartiles of the sample: three values that divide the sample into four equal groups, each /// Quartiles of the sample: three values that divide the sample into four equal groups, each
@ -302,7 +302,7 @@ fn percentile_of_sorted(sorted_samples: &[f64], pct: f64) -> f64 {
/// It differs from trimming in that it does not change the number of samples, /// It differs from trimming in that it does not change the number of samples,
/// just changes the values of those that are outliers. /// just changes the values of those that are outliers.
/// ///
/// See: <http://en.wikipedia.org/wiki/Winsorising> /// See: <https://en.wikipedia.org/wiki/Winsorising>
pub fn winsorize(samples: &mut [f64], pct: f64) { pub fn winsorize(samples: &mut [f64], pct: f64) {
let mut tmp = samples.to_vec(); let mut tmp = samples.to_vec();
local_sort(&mut tmp); local_sort(&mut tmp);

View File

@ -61,7 +61,7 @@ impl KleeneToken {
} }
} }
/// A Kleene-style [repetition operator](http://en.wikipedia.org/wiki/Kleene_star) /// A Kleene-style [repetition operator](https://en.wikipedia.org/wiki/Kleene_star)
/// for token sequences. /// for token sequences.
#[derive(Clone, PartialEq, Encodable, Decodable, Debug, Copy)] #[derive(Clone, PartialEq, Encodable, Decodable, Debug, Copy)]
enum KleeneOp { enum KleeneOp {

View File

@ -1264,7 +1264,7 @@ rustc_index::newtype_index! {
/// De Bruijn index of 0, because the innermost binder in that location /// De Bruijn index of 0, because the innermost binder in that location
/// is the outer fn. /// is the outer fn.
/// ///
/// [dbi]: http://en.wikipedia.org/wiki/De_Bruijn_index /// [dbi]: https://en.wikipedia.org/wiki/De_Bruijn_index
#[derive(HashStable)] #[derive(HashStable)]
pub struct DebruijnIndex { pub struct DebruijnIndex {
DEBUG_FORMAT = "DebruijnIndex({})", DEBUG_FORMAT = "DebruijnIndex({})",

View File

@ -136,7 +136,7 @@ fn get_symbol_hash<'tcx>(
} }
// Follow C++ namespace-mangling style, see // Follow C++ namespace-mangling style, see
// http://en.wikipedia.org/wiki/Name_mangling for more info. // https://en.wikipedia.org/wiki/Name_mangling for more info.
// //
// It turns out that on macOS you can actually have arbitrary symbols in // It turns out that on macOS you can actually have arbitrary symbols in
// function names (at least when given to LLVM), but this is not possible // function names (at least when given to LLVM), but this is not possible

View File

@ -7,7 +7,7 @@ use std::marker::PhantomData;
// closure. As far as I can tell, coding up a recursive closure // closure. As far as I can tell, coding up a recursive closure
// requires the good ol' [Y Combinator]. // requires the good ol' [Y Combinator].
// //
// [Y Combinator]: http://en.wikipedia.org/wiki/Fixed-point_combinator#Y_combinator // [Y Combinator]: https://en.wikipedia.org/wiki/Fixed-point_combinator#Y_combinator
struct YCombinator<F,A,R> { struct YCombinator<F,A,R> {
func: F, func: F,