4 ms·
> '�' // oops! why oops ? what do you expect ? do you also '[0]' random image data and expect it to be the first pixel's red component ?
by jcelerier 8y ago
> '�' // oops!
why oops ? what do you expect ? do you also '[0]' random image data and expect it to be the first pixel's red component ?
- nemetroid 8y agoIn Python and Haskell, indexing a Unicode string yields a Unicode codepoint. In Rust, there is no index operator for Strings.