diff options
| author | Russ Cox <rsc@golang.org> | 2022-01-14 12:53:28 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2022-01-14 18:05:40 +0000 |
| commit | f81f4f7f21d45f2e62f8dbcf84e0fd5d7b2785a3 (patch) | |
| tree | a1cf707d91955d3feff262350bc221509a4f93c4 /_content/doc/tutorial | |
| parent | fe93965e6b1e95966a3efb8e1139e84f88fa9937 (diff) | |
| download | go-x-website-f81f4f7f21d45f2e62f8dbcf84e0fd5d7b2785a3.tar.xz | |
_content: remove some https://go.dev/ prefixes in links
The site is served at both go.dev and golang.google.cn.
In China, only golang.google.cn can serve, so we try to use
relative links to avoid pointing users to the copy they can't access.
Periodically we have to remove prefixes that have crept in.
This commit applies today's round of that.
Change-Id: Iaa169635664d0562a1cccc57c3e02b687b3493e7
Reviewed-on: https://go-review.googlesource.com/c/website/+/378597
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: DO NOT USE <katiehockman@google.com>
Trust: DO NOT USE <katiehockman@google.com>
Diffstat (limited to '_content/doc/tutorial')
| -rw-r--r-- | _content/doc/tutorial/fuzz.md | 4 | ||||
| -rw-r--r-- | _content/doc/tutorial/generics.md | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/_content/doc/tutorial/fuzz.md b/_content/doc/tutorial/fuzz.md index 3309ab4d..40575f90 100644 --- a/_content/doc/tutorial/fuzz.md +++ b/_content/doc/tutorial/fuzz.md @@ -458,7 +458,7 @@ However, characters such as 泃 can require several bytes. Thus, reversing the string byte-by-byte will invalidate multi-byte characters. **Note:** If you’re curious about how Go deals with strings, read the blog post -[Strings, bytes, runes and characters in Go](https://go.dev/blog/strings) for a +[Strings, bytes, runes and characters in Go](/blog/strings) for a deeper understanding. With a better understanding of the bug, correct the error in the `Reverse` @@ -537,7 +537,7 @@ would be a great approach. In this tutorial, we will log useful debugging info in the `Reverse` function. Look closely at the reversed string to spot the error. In Go, [a string is a -read only slice of bytes](https://go.dev/blog/strings), and can contain bytes +read only slice of bytes](/blog/strings), and can contain bytes that aren’t valid UTF-8. The original string is a byte slice with one byte, `'\x91'`. When the input string is set to rune[], Go encodes the byte slice to UTF-8, and replaces the byte with the UTF-8 character �. When we compare the diff --git a/_content/doc/tutorial/generics.md b/_content/doc/tutorial/generics.md index be8bc8db..06251f13 100644 --- a/_content/doc/tutorial/generics.md +++ b/_content/doc/tutorial/generics.md @@ -22,7 +22,7 @@ You'll progress through the following sections: **Note:** For other tutorials, see [Tutorials](/doc/tutorial/index.html). **Note:** If you prefer, you can use -[the Go playground in “Go dev branch” mode](https://go.dev/play/?v=gotip) +[the Go playground in “Go dev branch” mode](/play/?v=gotip) to edit and run your program instead. ## Prerequisites @@ -484,7 +484,7 @@ Suggested next topics: <!--TODO: Update text and link after release.--> You can run this program in the -[Go playground](https://go.dev/play/p/apNmfVwogK0?v=gotip). On the +[Go playground](/play/p/apNmfVwogK0?v=gotip). On the playground simply click the **Run** button. ``` |
