Skip to content

Commit

Permalink
go/build: clarify Context.HasSubdir docs
Browse files Browse the repository at this point in the history
Fixes #17888

Change-Id: I7490b95a03b810a0f7ed1f07f37d7c7b3ac036be
Reviewed-on: https://go-review.googlesource.com/34240
Reviewed-by: Dmitri Shuralyov <shurcool@gmail.com>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
  • Loading branch information
bradfitz committed Dec 9, 2016
1 parent 2eb976e commit 3c04661
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/go/build/build.go
Expand Up @@ -76,8 +76,9 @@ type Context struct {
// If IsDir is nil, Import calls os.Stat and uses the result's IsDir method.
IsDir func(path string) bool

// HasSubdir reports whether dir is a subdirectory of
// (perhaps multiple levels below) root.
// HasSubdir reports whether dir is lexically a subdirectory of
// root, perhaps multiple levels below. It does not try to check
// whether dir exists.
// If so, HasSubdir sets rel to a slash-separated path that
// can be joined to root to produce a path equivalent to dir.
// If HasSubdir is nil, Import uses an implementation built on
Expand Down

0 comments on commit 3c04661

Please sign in to comment.