You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![allow(unused)]fnmain(){let v = String::from("π»βπ");assert_eq!(Some("π»"), v.get(0..4));// indices not on UTF-8 sequence boundariesassert!(v.get(1..).is_none());assert!(v.get(..8).is_none());// out of boundsassert!(v.get(..42).is_none());}
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: