Fixes grammar issues in comments for generated functions.
This commit is contained in:
parent
015755bcf8
commit
cd9bcb69b1
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user