Skip to content

Commit 2a309b7

Browse files
committed
Auto merge of #27476 - Manishearth:rollup, r=Manishearth
- Successful merges: #27464, #27473 - Failed merges:
2 parents 504eaa5 + d33cca9 commit 2a309b7

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/doc/trpl/choosing-your-guarantees.md

+1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ scope.
308308

309309
Both of these provide safe shared mutability across threads, however they are prone to deadlocks.
310310
Some level of additional protocol safety can be obtained via the type system.
311+
311312
#### Costs
312313

313314
These use internal atomic-like types to maintain the locks, which are pretty costly (they can block

src/libstd/lib.rs

+6-11
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
//! The Rust Standard Library is the foundation of portable Rust
1414
//! software, a set of minimal and battle-tested shared abstractions
1515
//! for the [broader Rust ecosystem](https://crates.io). It offers
16-
//! core types (e.g. [`Vec`](vec/index.html)
17-
//! and [`Option`](option/index.html)), library-defined [operations on
18-
//! language primitives](#primitives) (e.g. [`u32`](u32/index.html) and
19-
//! [`str`](str/index.html)), [standard macros](#macros),
16+
//! core types, like [`Vec`](vec/index.html)
17+
//! and [`Option`](option/index.html), library-defined [operations on
18+
//! language primitives](#primitives), [standard macros](#macros),
2019
//! [I/O](io/index.html) and [multithreading](thread/index.html), among
21-
//! [many other lovely
20+
//! [many other
2221
//! things](#what-is-in-the-standard-library-documentation?).
2322
//!
2423
//! `std` is available to all Rust crates by default, just as if each
@@ -65,8 +64,6 @@
6564
//!
6665
//! # What is in the standard library documentation?
6766
//!
68-
//! Lots of stuff. Well, broadly four things actually.
69-
//!
7067
//! First of all, The Rust Standard Library is divided into a number
7168
//! of focused modules, [all listed further down this page](#modules).
7269
//! These modules are the bedrock upon which all of Rust is forged,
@@ -89,7 +86,7 @@
8986
//!
9087
//! So for example there is a [page for the primitive type
9188
//! `i32`](primitive.i32.html) that lists all the methods that can be
92-
//! called on 32-bit integers (mega useful), and there is a [page for
89+
//! called on 32-bit integers (very useful), and there is a [page for
9390
//! the module `std::i32`](i32/index.html) that documents the constant
9491
//! values `MIN` and `MAX` (rarely useful).
9592
//!
@@ -99,9 +96,7 @@
9996
//! [`String`](string/struct.String.html) and
10097
//! [`Vec`](vec/struct.Vec.html) are actually calls to methods on
10198
//! `str` and `[T]` respectively, via [deref
102-
//! coercions](../book/deref-coercions.html). *Accepting that
103-
//! primitive types are documented on their own pages will bring you a
104-
//! deep inner wisdom. Embrace it now before proceeding.*
99+
//! coercions](../book/deref-coercions.html).
105100
//!
106101
//! Third, the standard library defines [The Rust
107102
//! Prelude](prelude/index.html), a small collection of items - mostly

0 commit comments

Comments
 (0)