diff options
| author | bors <bors@rust-lang.org> | 2017-06-29 08:40:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-06-29 08:40:39 +0000 |
| commit | 7acce3724d6ba5cb84d6eef6d6847f8573a1fe5a (patch) | |
| tree | 1cdd6109e4d61790d67fb50fa25a88a8da01fdee /src/liballoc | |
| parent | dc2003b7cc1af7d7beee0b1ceec3d811c28cb35e (diff) | |
| parent | d3329d7102db78a408bc059600c48fc7f99a0e67 (diff) | |
| download | rust-7acce3724d6ba5cb84d6eef6d6847f8573a1fe5a.tar.gz rust-7acce3724d6ba5cb84d6eef6d6847f8573a1fe5a.zip | |
Auto merge of #42964 - arielb1:rollup, r=arielb1
Rollup of 12 pull requests - Successful merges: #42219, #42831, #42832, #42884, #42886, #42901, #42919, #42920, #42946, #42953, #42955, #42958 - Failed merges:
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/allocator.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/fmt.rs | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/liballoc/allocator.rs b/src/liballoc/allocator.rs index 9bddce29957..bf38629ed38 100644 --- a/src/liballoc/allocator.rs +++ b/src/liballoc/allocator.rs @@ -873,7 +873,7 @@ pub unsafe trait Alloc { { let k = Layout::new::<T>(); if k.size() > 0 { - unsafe { self.alloc(k).map(|p|Unique::new(*p as *mut T)) } + unsafe { self.alloc(k).map(|p| Unique::new(p as *mut T)) } } else { Err(AllocErr::invalid_input("zero-sized type invalid for alloc_one")) } diff --git a/src/liballoc/fmt.rs b/src/liballoc/fmt.rs index 1bd95fb82aa..4847b21c0b3 100644 --- a/src/liballoc/fmt.rs +++ b/src/liballoc/fmt.rs @@ -498,12 +498,10 @@ pub use core::fmt::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple}; use string; -/// The format function takes a precompiled format string and a list of -/// arguments, to return the resulting formatted string. +/// The `format` function takes an `Arguments` struct and returns the resulting +/// formatted string. /// -/// # Arguments -/// -/// * args - a structure of arguments generated via the `format_args!` macro. +/// The `Arguments` instance can be created with the `format_args!` macro. /// /// # Examples /// |
