<ao> | Adetunji's Blog

len() will not return the number characters in a string

.len() method returns the number of bytes not the number of characters or letters. .char().count() will return the number of character. char coverts strings to a collection characters first and then count() counts how many they are

#note #rust