Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6fb5b73
dbg!() without parameters.
Jan 22, 2019
ea9e2c4
Test behaviour
Jan 31, 2019
988b3d5
Implement ExactSizeIterator for ToLowercase and ToUppercase
sugar700 Feb 27, 2019
911a633
Remove copy paste error in char tests
ollie27 Feb 27, 2019
c5fe405
Clarify distinction between floor() and trunc()
jonhoo Feb 28, 2019
b91ab62
Fix a tiny error in documentation of std::pin.
taeguk Mar 5, 2019
b9d12ed
Be more discerning on when to attempt suggesting a comma in a macro i…
estebank Mar 11, 2019
27abd52
Fix operator precedence
estebank Mar 13, 2019
4e5692d
test that wildcard type `_` is not duplicated by `type Foo<X> = (X, X…
pnkfelix Jan 18, 2019
98b2672
update mailmap for Bastian Kauschke
lcnr Mar 17, 2019
698bbe5
Replaced self-reflective explicit types with clearer `Self` or `Self:…
regexident Mar 18, 2019
9d408d9
Add todo!() macro
matklad Nov 29, 2018
de4be2c
Stabilize refcell_map_split feature
joshlf Mar 18, 2019
8f261a6
Update since annotation for ExactSizeIterator for ToUppercase/Lowercase
sugar700 Mar 19, 2019
ab41023
Run branch cleanup after copy prop
oli-obk Mar 19, 2019
d4dd860
Rollup merge of #56348 - matklad:todo-macro, r=withoutboats
Centril Mar 19, 2019
c1975db
Rollup merge of #57729 - pnkfelix:issue-55748-pat-types-are-constrain…
Centril Mar 19, 2019
d4ef74b
Rollup merge of #57847 - clarcharr:dbg_no_params, r=Centril
Centril Mar 19, 2019
fff8586
Rollup merge of #58778 - xfix:exact_size_case_mapping_iter, r=SimonSapin
Centril Mar 19, 2019
5abd9c7
Rollup merge of #58812 - jonhoo:floor_v_trunc, r=alexcrichton
Centril Mar 19, 2019
61ff887
Rollup merge of #58939 - taeguk:fix-doc-about-pin, r=rkruppe
Centril Mar 19, 2019
8ebe2ac
Rollup merge of #59116 - estebank:comma-sugg, r=petrochenkov
Centril Mar 19, 2019
05e8051
Rollup merge of #59252 - lcnr:mailmap, r=Centril
Centril Mar 19, 2019
1ec1c5d
Rollup merge of #59275 - regexident:docs-self, r=joshtriplett
Centril Mar 19, 2019
a3581ac
Rollup merge of #59280 - joshlf:sandbox/joshlf/stabilize-refcell-map-…
Centril Mar 19, 2019
7f7829f
Rollup merge of #59290 - oli-obk:trivial_move_prop, r=davidtwco
Centril Mar 19, 2019
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
12 changes: 8 additions & 4 deletions src/libstd/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ impl f32 {
/// # Examples
///
/// ```
/// let f = 3.99_f32;
/// let f = 3.7_f32;
/// let g = 3.0_f32;
/// let h = -3.7_f32;
///
/// assert_eq!(f.floor(), 3.0);
/// assert_eq!(g.floor(), 3.0);
/// assert_eq!(h.floor(), -4.0);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
Expand Down Expand Up @@ -104,11 +106,13 @@ impl f32 {
/// # Examples
///
/// ```
/// let f = 3.3_f32;
/// let g = -3.7_f32;
/// let f = 3.7_f32;
/// let g = 3.0_f32;
/// let h = -3.7_f32;
///
/// assert_eq!(f.trunc(), 3.0);
/// assert_eq!(g.trunc(), -3.0);
/// assert_eq!(g.trunc(), 3.0);
/// assert_eq!(h.trunc(), -3.0);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
Expand Down
12 changes: 8 additions & 4 deletions src/libstd/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ impl f64 {
/// # Examples
///
/// ```
/// let f = 3.99_f64;
/// let f = 3.7_f64;
/// let g = 3.0_f64;
/// let h = -3.7_f64;
///
/// assert_eq!(f.floor(), 3.0);
/// assert_eq!(g.floor(), 3.0);
/// assert_eq!(h.floor(), -4.0);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
Expand Down Expand Up @@ -84,11 +86,13 @@ impl f64 {
/// # Examples
///
/// ```
/// let f = 3.3_f64;
/// let g = -3.7_f64;
/// let f = 3.7_f64;
/// let g = 3.0_f64;
/// let h = -3.7_f64;
///
/// assert_eq!(f.trunc(), 3.0);
/// assert_eq!(g.trunc(), -3.0);
/// assert_eq!(g.trunc(), 3.0);
/// assert_eq!(h.trunc(), -3.0);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
Expand Down