Skip to content

Commit ce231f6

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 5f6f926 + 72a630c commit ce231f6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

alloc/src/collections/binary_heap.rs

Lines changed: 3 additions & 3 deletions
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
//! ```

core/src/cmp.rs

Lines changed: 1 addition & 1 deletion
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`,

std/src/sync/barrier.rs

Lines changed: 1 addition & 1 deletion
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
}

test/src/stats.rs

Lines changed: 3 additions & 3 deletions
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);

0 commit comments

Comments
 (0)