Skip to content

Change 'Example' to 'Examples' throughout collections' rustdocs. #19655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/libcollections/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//! complexity. A priority queue can also be converted to a sorted vector in-place, allowing it to
//! be used for an `O(n log n)` in-place heapsort.
//!
//! # Example
//! # Examples
//!
//! This is a larger example which implements [Dijkstra's algorithm][dijkstra]
//! to solve the [shortest path problem][sssp] on a [directed graph][dir_graph].
Expand Down Expand Up @@ -178,7 +178,7 @@ impl<T: Ord> Default for BinaryHeap<T> {
impl<T: Ord> BinaryHeap<T> {
/// Creates an empty `BinaryHeap` as a max-heap.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -192,7 +192,7 @@ impl<T: Ord> BinaryHeap<T> {
/// so that the `BinaryHeap` does not have to be reallocated
/// until it contains at least that many values.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -206,7 +206,7 @@ impl<T: Ord> BinaryHeap<T> {
/// Creates a `BinaryHeap` from a vector. This is sometimes called
/// `heapifying` the vector.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -225,7 +225,7 @@ impl<T: Ord> BinaryHeap<T> {
/// An iterator visiting all values in underlying vector, in
/// arbitrary order.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -245,7 +245,7 @@ impl<T: Ord> BinaryHeap<T> {
/// the binary heap in arbitrary order. The binary heap cannot be used
/// after calling this.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -264,7 +264,7 @@ impl<T: Ord> BinaryHeap<T> {

/// Returns the greatest item in a queue, or `None` if it is empty.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -284,7 +284,7 @@ impl<T: Ord> BinaryHeap<T> {

/// Returns the number of elements the queue can hold without reallocating.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -306,7 +306,7 @@ impl<T: Ord> BinaryHeap<T> {
///
/// Panics if the new capacity overflows `uint`.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -325,7 +325,7 @@ impl<T: Ord> BinaryHeap<T> {
///
/// Panics if the new capacity overflows `uint`.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -348,7 +348,7 @@ impl<T: Ord> BinaryHeap<T> {
/// Removes the greatest item from a queue and returns it, or `None` if it
/// is empty.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -375,7 +375,7 @@ impl<T: Ord> BinaryHeap<T> {

/// Pushes an item onto the queue.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -398,7 +398,7 @@ impl<T: Ord> BinaryHeap<T> {
/// Pushes an item onto a queue then pops the greatest item off the queue in
/// an optimized fashion.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -424,7 +424,7 @@ impl<T: Ord> BinaryHeap<T> {
/// an optimized fashion. The push is done regardless of whether the queue
/// was empty.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -450,7 +450,7 @@ impl<T: Ord> BinaryHeap<T> {
/// Consumes the `BinaryHeap` and returns the underlying vector
/// in arbitrary order.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand All @@ -468,7 +468,7 @@ impl<T: Ord> BinaryHeap<T> {
/// Consumes the `BinaryHeap` and returns a vector in sorted
/// (ascending) order.
///
/// # Example
/// # Examples
///
/// ```
/// use std::collections::BinaryHeap;
Expand Down
Loading