Commit a1d2cbf6 authored by Rob Pike's avatar Rob Pike

crypto/tls/generate_cert.go: fix misspelling of O_CREATE.

Fixes #1888.

R=ken
CC=golang-dev
https://golang.org/cl/4515148
parent cb96d98b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment