write_char is unlikely to make it for 1.0, it’ll be 1.1
This commit is contained in:
parent
265a7cc3bd
commit
19cc9435d9
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ pub trait Write {
|
|||
/// # Errors
|
||||
///
|
||||
/// This function will return an instance of `FormatError` on error.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.1.0")]
|
||||
fn write_char(&mut self, c: char) -> Result {
|
||||
let mut utf_8 = [0u8; 4];
|
||||
let bytes_written = c.encode_utf8(&mut utf_8).unwrap_or(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue