|
|
|
|
|
by mstaoru
1034 days ago
|
|
fn tail<'a>(s: &'a [u8]) -> &'a [u8] {
&s[1..]
}
...
fn main() -> Result<(), std::str::Utf8Error> {
let s = std::str::from_utf8(&[240, 159, 141, 137])?;
println!("{}", s);
Ok(())
}
Sorry, `|::|&(_Rust!){}?`. I know you're sexy. But I'll prefer my eyesight and sanity over you. |
|
It does take a little while to get accustomed to, but the investment is more than worth it.
Can't comment on my sanity though.