Skip to content

Commit

Permalink
Fixes some code comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Teeuwen committed Mar 7, 2014
1 parent 362b078 commit 3834e2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ func writeDebugHeader(w io.Writer) error {
"io/ioutil"
)
// bindata_read reads the given file from disk. It returns
// an error on failure.
// bindata_read reads the given file from disk. It returns an error on failure.
func bindata_read(path, name string) ([]byte, error) {
buf, err := ioutil.ReadFile(path)
if err != nil {
Expand All @@ -53,8 +52,7 @@ func bindata_read(path, name string) ([]byte, error) {
// the original file (e.g.: from disk).
func writeDebugAsset(w io.Writer, asset *Asset) error {
_, err := fmt.Fprintf(w, `
// %s reads file data from disk.
// It panics if something went wrong in the process.
// %s reads file data from disk. It returns an error on failure.
func %s() ([]byte, error) {
return bindata_read(
%q,
Expand Down

0 comments on commit 3834e2f

Please sign in to comment.