summaryrefslogtreecommitdiffhomepage
path: root/go.html.markdown
diff options
context:
space:
mode:
authorConnor Morrison <46800178+AllSeerEye@users.noreply.github.com>2021-12-09 15:43:57 -0700
committerGitHub <noreply@github.com>2021-12-09 23:43:57 +0100
commitac212cb879f4ed6a87898fc4692573e190cbbcf7 (patch)
tree2d42cd9b4c3285a1c2c457bcfc27693be6bed0ce /go.html.markdown
parentda18f5c914035e317af402370d353537a7d1ed40 (diff)
Update go.html.markdown (#4284)
Diffstat (limited to 'go.html.markdown')
-rw-r--r--go.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/go.html.markdown b/go.html.markdown
index 2a3fae8e..86b0f21b 100644
--- a/go.html.markdown
+++ b/go.html.markdown
@@ -179,7 +179,7 @@ func learnNamedReturns(x, y int) (z int) {
// Go is fully garbage collected. It has pointers but no pointer arithmetic.
// You can make a mistake with a nil pointer, but not by incrementing a pointer.
-// Unlike in C/Cpp taking and returning an address of a local varible is also safe.
+// Unlike in C/Cpp taking and returning an address of a local variable is also safe.
func learnMemory() (p, q *int) {
// Named return values p and q have type pointer to int.
p = new(int) // Built-in function new allocates memory.