Fixes some code comments.

pull/4/head
Jim Teeuwen 2014-03-07 22:13:34 +01:00
parent 362b0784bb
commit 3834e2fe48
1 changed files with 2 additions and 4 deletions

View File

@ -34,8 +34,7 @@ func writeDebugHeader(w io.Writer) error {
"io/ioutil" "io/ioutil"
) )
// bindata_read reads the given file from disk. It returns // bindata_read reads the given file from disk. It returns an error on failure.
// an error on failure.
func bindata_read(path, name string) ([]byte, error) { func bindata_read(path, name string) ([]byte, error) {
buf, err := ioutil.ReadFile(path) buf, err := ioutil.ReadFile(path)
if err != nil { if err != nil {
@ -53,8 +52,7 @@ func bindata_read(path, name string) ([]byte, error) {
// the original file (e.g.: from disk). // the original file (e.g.: from disk).
func writeDebugAsset(w io.Writer, asset *Asset) error { func writeDebugAsset(w io.Writer, asset *Asset) error {
_, err := fmt.Fprintf(w, ` _, err := fmt.Fprintf(w, `
// %s reads file data from disk. // %s reads file data from disk. It returns an error on failure.
// It panics if something went wrong in the process.
func %s() ([]byte, error) { func %s() ([]byte, error) {
return bindata_read( return bindata_read(
%q, %q,