dtolnay / itoa

Fast function for printing integer primitives to a decimal string
Apache License 2.0
306 stars 37 forks source link

No std example #17

Closed fmckeogh closed 6 years ago

fmckeogh commented 6 years ago

Would it be possible to create an example for when using nostd? It works great using itoa::write with std, but I get the following error using itoa::fmt in nostd:

the trait 'core::fmt::Write' is not implemented for '[u8]'

on this line:

let n = itoa::fmt(buffer[..], num).unwrap();

Thanks :)