Pick a feature name for write_char
This commit is contained in:
parent
19cc9435d9
commit
16181e686a
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ pub trait Write {
|
||||||
/// # Errors
|
/// # Errors
|
||||||
///
|
///
|
||||||
/// This function will return an instance of `FormatError` on error.
|
/// 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 {
|
fn write_char(&mut self, c: char) -> Result {
|
||||||
let mut utf_8 = [0u8; 4];
|
let mut utf_8 = [0u8; 4];
|
||||||
let bytes_written = c.encode_utf8(&mut utf_8).unwrap_or(0);
|
let bytes_written = c.encode_utf8(&mut utf_8).unwrap_or(0);
|
||||||
|
|
Loading…
Reference in a new issue