Pick a feature name for write_char

This commit is contained in:
Simon Sapin 2015-04-21 18:16:08 +02:00
parent 19cc9435d9
commit 16181e686a

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.1.0")]
#[stable(feature = "fmt_write_char", 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);