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

Commit

Permalink
cue/load: drop out-of-date comment about type of value in Overlay map
Browse files Browse the repository at this point in the history
Change-Id: I71dded74e34a9c7cb839c3b1e8f47b80aa2c9bd9
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9021
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
myitcv authored and mpvl committed Apr 2, 2021
1 parent a1903ca commit c24a281
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cue/load/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,9 @@ type Config struct {
// the syntax tree.
ParseFile func(name string, src interface{}) (*ast.File, error)

// Overlay provides a mapping of absolute file paths to file contents.
// If the file with the given path already exists, the parser will use the
// Overlay provides a mapping of absolute file paths to file contents. If
// the file with the given path already exists, the parser will use the
// alternative file contents provided by the map.
//
// If the value must be of type string, []byte, io.Reader, or *ast.File.
Overlay map[string]Source

// Stdin defines an alternative for os.Stdin for the file "-". When used,
Expand Down

0 comments on commit c24a281

Please sign in to comment.