Fixes grammar issues in comments for generated functions.

This commit is contained in:
jimt 2012-10-12 14:15:18 +02:00
parent 015755bcf8
commit cd9bcb69b1
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ import (
"io"
)
// %s returns the raw, uncompressed file data data.
// %s returns raw, uncompressed file data.
func %s() []byte {
gz, err := gzip.NewReader(bytes.NewBuffer([]byte{`, pkgname, funcname, funcname)

View File

@ -13,7 +13,7 @@ import (
func translate_memcpy_uncomp(input io.Reader, output io.Writer, pkgname, funcname string) {
fmt.Fprintf(output, `package %s
// %s returns the raw file data data.
// %s returns raw file data.
func %s() []byte {
return []byte{`, pkgname, funcname, funcname)

View File

@ -30,7 +30,7 @@ var _%s = "`, pkgname, funcname)
fmt.Fprintf(output, `"
// %s returns the raw, uncompressed file data data.
// %s returns raw, uncompressed file data.
func %s() []byte {
var empty [0]byte
sx := (*reflect.StringHeader)(unsafe.Pointer(&_%s))

View File

@ -24,7 +24,7 @@ var _%s = "`, pkgname, funcname)
fmt.Fprintf(output, `"
// %s returns the raw file data data.
// %s returns raw file data.
//
// WARNING: The returned byte slice is READ-ONLY.
// Attempting to alter the slice contents will yield a runtime panic.