Skip to content

Commit

Permalink
Fix verbiage for Strings and Runes (noissue)
Browse files Browse the repository at this point in the history
  • Loading branch information
aannirajpatel committed Feb 22, 2024
1 parent a3fb3a3 commit d282d9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions examples/strings-and-runes/strings-and-runes.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ func main() {
// the `utf8` package. Note that the run-time of
// `RuneCountInString` depends on the size of the string,
// because it has to decode each UTF-8 rune sequentially.
// Some Thai characters are represented by multiple UTF-8
// code points, so the result of this count may be surprising.
// Some Thai characters are represented by UTF-8 code points
// that can span multiple bytes, so the result of this count
// may be surprising.
fmt.Println("Rune count:", utf8.RuneCountInString(s))

// A `range` loop handles strings specially and decodes
Expand Down
4 changes: 2 additions & 2 deletions examples/strings-and-runes/strings-and-runes.hash
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
45a1127788eb4c0acfef48efee9ca386e06d4c58
39BpTLf6BAz
ffbc918567cea7cdadcaee87ffc404a1d4f5c62a
-iNDXZ9IM3s
7 changes: 4 additions & 3 deletions public/strings-and-runes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d282d9a

Please sign in to comment.