Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
go-tour/gotour: fix bug in argument handling
Browse files Browse the repository at this point in the history
Don't use the default after going to all that trouble to override it.
Mea culpa.

R=adg
CC=golang-dev
https://codereview.appspot.com/13638043
  • Loading branch information
robpike committed Sep 11, 2013
1 parent 80dd2c5 commit 7f151e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gotour/tour.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func initTour(root string) error {
f, err := os.Open(source)
if err != nil {
// See if it exists in the content directory in the root.
source = filepath.Join(root, "content", "tour.article")
source = filepath.Join(root, "content", source)
f, err = os.Open(source)
if err != nil {
return err
Expand Down

0 comments on commit 7f151e9

Please sign in to comment.