]> Cypherpunks repositories - gostls13.git/commitdiff
misc: fix typos in various docs
authoralkesh26 <alkesh26@gmail.com>
Thu, 7 Mar 2019 07:29:34 +0000 (07:29 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Thu, 7 Mar 2019 07:30:06 +0000 (07:30 +0000)
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 <emm.odeke@gmail.com>
misc/cgo/test/env.go
misc/cgo/testcarchive/testdata/main4.c
misc/cgo/testcarchive/testdata/main5.c
misc/nacl/testdata/mime.types

index b2081b72837a02a40531387a21cbf2dd24a77e71..e0703e145289b8d7d6b38edc321c03d620e38a7b 100644 (file)
@@ -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")
index 4fd55e753d58f7c77c53740105d7be95a0de412a..a74763dd70efc1743f7a91b9e5137adc16ffd2a4 100644 (file)
@@ -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;
        }
 
index 897b70d2fa6d5f1919e41e275f586adf60ae991d..9d0da336521b99d3a5d730b6b28d07ceea43e98c 100644 (file)
@@ -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:
index 81a415e9e66779f51d8dbd9157a5f1f6480514b4..ba678d5a4ec16ed052bed37f6adb711d84a96e7a 100644 (file)
@@ -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