From a1d2cbf6450871ad1b21f46f53c6b7a4e500e776 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 27 May 2011 21:06:50 +1000 Subject: [PATCH] crypto/tls/generate_cert.go: fix misspelling of O_CREATE. Fixes #1888. R=ken CC=golang-dev https://golang.org/cl/4515148 --- src/pkg/crypto/tls/generate_cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/crypto/tls/generate_cert.go b/src/pkg/crypto/tls/generate_cert.go index 5b8c700e5f9..f461888799d 100644 --- a/src/pkg/crypto/tls/generate_cert.go +++ b/src/pkg/crypto/tls/generate_cert.go @@ -59,7 +59,7 @@ func main() { certOut.Close() log.Print("written cert.pem\n") - keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREAT|os.O_TRUNC, 0600) + keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600) if err != nil { log.Print("failed to open key.pem for writing:", err) return