Commit dabe5106 authored by Russ Cox's avatar Russ Cox

crypto/cipher: fix vet warning

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7973043
parent ebb1714f
......@@ -233,7 +233,7 @@ func ExampleStreamReader() {
}
defer outFile.Close()
reader := &cipher.StreamReader{stream, inFile}
reader := &cipher.StreamReader{S: stream, R: inFile}
// Copy the input file to the output file, decrypting as we go.
if _, err := io.Copy(outFile, reader); err != nil {
panic(err)
......@@ -270,7 +270,7 @@ func ExampleStreamWriter() {
}
defer outFile.Close()
writer := &cipher.StreamWriter{stream, outFile, nil}
writer := &cipher.StreamWriter{S: stream, W: outFile}
// Copy the input file to the output file, encrypting as we go.
if _, err := io.Copy(writer, inFile); err != nil {
panic(err)
......
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