From: alkesh26 Date: Thu, 7 Mar 2019 07:29:34 +0000 (+0000) Subject: misc: fix typos in various docs X-Git-Tag: go1.13beta1~1164 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c7f69a2897b8fdc16c07aaa0a152060e60449f89;p=gostls13.git misc: fix typos in various docs Change-Id: Ib03d7e5686e510152042e403b00fb2d65572f393 GitHub-Last-Rev: 57aeedf077cb4f82af68cc5cb2de5d53a447565e GitHub-Pull-Request: golang/go#30156 Reviewed-on: https://go-review.googlesource.com/c/go/+/161723 Reviewed-by: Emmanuel Odeke --- diff --git a/misc/cgo/test/env.go b/misc/cgo/test/env.go index b2081b7283..e0703e1452 100644 --- a/misc/cgo/test/env.go +++ b/misc/cgo/test/env.go @@ -18,8 +18,8 @@ import ( // This is really an os package test but here for convenience. func testSetEnv(t *testing.T) { if runtime.GOOS == "windows" { - // Go uses SetEnvironmentVariable on windows. Howerver, - // C runtime takes a *copy* at process startup of thei + // Go uses SetEnvironmentVariable on windows. However, + // C runtime takes a *copy* at process startup of the // OS environment, and stores it in environ/envp. // It is this copy that getenv/putenv manipulate. t.Logf("skipping test") diff --git a/misc/cgo/testcarchive/testdata/main4.c b/misc/cgo/testcarchive/testdata/main4.c index 4fd55e753d..a74763dd70 100644 --- a/misc/cgo/testcarchive/testdata/main4.c +++ b/misc/cgo/testcarchive/testdata/main4.c @@ -93,7 +93,7 @@ static void* thread1(void* arg __attribute__ ((unused))) { fprintf(stderr, "sigaltstack disabled on return from Go\n"); ok = 0; } else if (nss.ss_sp != ss.ss_sp) { - fprintf(stderr, "sigalstack changed on return from Go\n"); + fprintf(stderr, "sigaltstack changed on return from Go\n"); ok = 0; } @@ -150,7 +150,7 @@ static void* thread2(void* arg __attribute__ ((unused))) { fprintf(stderr, "sigaltstack disabled on return from Go\n"); ok = 0; } else if (nss.ss_sp != ss.ss_sp) { - fprintf(stderr, "sigalstack changed on return from Go\n"); + fprintf(stderr, "sigaltstack changed on return from Go\n"); ok = 0; } diff --git a/misc/cgo/testcarchive/testdata/main5.c b/misc/cgo/testcarchive/testdata/main5.c index 897b70d2fa..9d0da33652 100644 --- a/misc/cgo/testcarchive/testdata/main5.c +++ b/misc/cgo/testcarchive/testdata/main5.c @@ -85,7 +85,7 @@ int main(int argc, char** argv) { printf("write(2) unexpectedly succeeded\n"); return 0; } - printf("did not receieve SIGPIPE\n"); + printf("did not receive SIGPIPE\n"); return 0; } default: diff --git a/misc/nacl/testdata/mime.types b/misc/nacl/testdata/mime.types index 81a415e9e6..ba678d5a4e 100644 --- a/misc/nacl/testdata/mime.types +++ b/misc/nacl/testdata/mime.types @@ -1,6 +1,6 @@ # This file maps Internet media types to unique file extension(s). # Although created for httpd, this file is used by many software systems -# and has been placed in the public domain for unlimited redisribution. +# and has been placed in the public domain for unlimited redistribution. # # The table below contains both registered and (common) unregistered types. # A type that has no unique extension can be ignored -- they are listed