Skip to content

Commit bc3d076

Browse files
authored
Rollup merge of rust-lang#75831 - lzutao:https, r=Dylan-DPC
doc: Prefer https link for wikipedia URLs A tiny changes.
2 parents 0f2ed41 + 2c995d2 commit bc3d076

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

library/alloc/src/collections/binary_heap.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
//! to solve the [shortest path problem][sssp] on a [directed graph][dir_graph].
1313
//! It shows how to use [`BinaryHeap`] with custom types.
1414
//!
15-
//! [dijkstra]: http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
16-
//! [sssp]: http://en.wikipedia.org/wiki/Shortest_path_problem
17-
//! [dir_graph]: http://en.wikipedia.org/wiki/Directed_graph
15+
//! [dijkstra]: https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
16+
//! [sssp]: https://en.wikipedia.org/wiki/Shortest_path_problem
17+
//! [dir_graph]: https://en.wikipedia.org/wiki/Directed_graph
1818
//! [`BinaryHeap`]: struct.BinaryHeap.html
1919
//!
2020
//! ```

library/core/src/cmp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use self::Ordering::*;
2626

2727
/// Trait for equality comparisons which are [partial equivalence
28-
/// relations](http://en.wikipedia.org/wiki/Partial_equivalence_relation).
28+
/// relations](https://en.wikipedia.org/wiki/Partial_equivalence_relation).
2929
///
3030
/// This trait allows for partial equality, for types that do not have a full
3131
/// equivalence relation. For example, in floating point numbers `NaN != NaN`,

library/std/src/sync/barrier.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Barrier {
131131
lock.count += 1;
132132
if lock.count < self.num_threads {
133133
// We need a while loop to guard against spurious wakeups.
134-
// http://en.wikipedia.org/wiki/Spurious_wakeup
134+
// https://en.wikipedia.org/wiki/Spurious_wakeup
135135
while local_gen == lock.generation_id && lock.count < self.num_threads {
136136
lock = self.cvar.wait(lock).unwrap();
137137
}

library/test/src/stats.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub trait Stats {
8484
/// by the constant `1.4826` to allow its use as a consistent estimator for the standard
8585
/// deviation.
8686
///
87-
/// See: <http://en.wikipedia.org/wiki/Median_absolute_deviation>
87+
/// See: <https://en.wikipedia.org/wiki/Median_absolute_deviation>
8888
fn median_abs_dev(&self) -> f64;
8989

9090
/// Median absolute deviation as a percent of the median. See `median_abs_dev` and `median`.
@@ -96,7 +96,7 @@ pub trait Stats {
9696
///
9797
/// Calculated by linear interpolation between closest ranks.
9898
///
99-
/// See: <http://en.wikipedia.org/wiki/Percentile>
99+
/// See: <https://en.wikipedia.org/wiki/Percentile>
100100
fn percentile(&self, pct: f64) -> f64;
101101

102102
/// 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 {
302302
/// It differs from trimming in that it does not change the number of samples,
303303
/// just changes the values of those that are outliers.
304304
///
305-
/// See: <http://en.wikipedia.org/wiki/Winsorising>
305+
/// See: <https://en.wikipedia.org/wiki/Winsorising>
306306
pub fn winsorize(samples: &mut [f64], pct: f64) {
307307
let mut tmp = samples.to_vec();
308308
local_sort(&mut tmp);

src/librustc_expand/mbe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl KleeneToken {
6161
}
6262
}
6363

64-
/// A Kleene-style [repetition operator](http://en.wikipedia.org/wiki/Kleene_star)
64+
/// A Kleene-style [repetition operator](https://en.wikipedia.org/wiki/Kleene_star)
6565
/// for token sequences.
6666
#[derive(Clone, PartialEq, Encodable, Decodable, Debug, Copy)]
6767
enum KleeneOp {

src/librustc_middle/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ rustc_index::newtype_index! {
12641264
/// De Bruijn index of 0, because the innermost binder in that location
12651265
/// is the outer fn.
12661266
///
1267-
/// [dbi]: http://en.wikipedia.org/wiki/De_Bruijn_index
1267+
/// [dbi]: https://en.wikipedia.org/wiki/De_Bruijn_index
12681268
#[derive(HashStable)]
12691269
pub struct DebruijnIndex {
12701270
DEBUG_FORMAT = "DebruijnIndex({})",

src/librustc_symbol_mangling/legacy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn get_symbol_hash<'tcx>(
136136
}
137137

138138
// Follow C++ namespace-mangling style, see
139-
// http://en.wikipedia.org/wiki/Name_mangling for more info.
139+
// https://en.wikipedia.org/wiki/Name_mangling for more info.
140140
//
141141
// It turns out that on macOS you can actually have arbitrary symbols in
142142
// function names (at least when given to LLVM), but this is not possible

src/test/ui/unboxed-closures/unboxed-closures-infer-recursive-fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::marker::PhantomData;
77
// closure. As far as I can tell, coding up a recursive closure
88
// requires the good ol' [Y Combinator].
99
//
10-
// [Y Combinator]: http://en.wikipedia.org/wiki/Fixed-point_combinator#Y_combinator
10+
// [Y Combinator]: https://en.wikipedia.org/wiki/Fixed-point_combinator#Y_combinator
1111

1212
struct YCombinator<F,A,R> {
1313
func: F,

0 commit comments

Comments
 (0)