Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix verbiage for Strings and Runes (noissue) #510

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading