write_char is unlikely to make it for 1.0, it’ll be 1.1

This commit is contained in:
Simon Sapin 2015-04-21 18:06:00 +02:00
parent 265a7cc3bd
commit 19cc9435d9

View File

@ -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);