fix: rune manipulator typo

This commit is contained in:
mohsin106
2021-01-10 11:28:56 -05:00
committed by GitHub
parent 2d9d4351f0
commit 8a5d1c6704

View File

@ -58,7 +58,7 @@ func main() {
// Print the last rune of the strings
// Hint: Use utf8.DecodeLastRuneInString
r, size = utf8.DecodeLastRuneInString(s)
fmt.Printf("\tfirst : %q (%d bytes)\n", r, size)
fmt.Printf("\tlast : %q (%d bytes)\n", r, size)
// Slice and print the first two runes of the strings
_, first := utf8.DecodeRuneInString(s)