Skip to content

Commit

Permalink
Fix UpdateHCL comments
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Sep 14, 2019
1 parent 962cc0e commit b33dea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tfupdate/update.go
Expand Up @@ -56,7 +56,8 @@ func NewOption(updateType string, target string) Option {
}
}

// UpdateHCL reads HCL from io.Reader and writes updated HCL to io.Writer.
// UpdateHCL reads HCL from io.Reader, updates version constraints
// and writes updated contents to io.Writer.
// Note that a filename is used only for an error message.
func UpdateHCL(r io.Reader, w io.Writer, filename string, o Option) error {
src, err := ioutil.ReadAll(r)
Expand Down

0 comments on commit b33dea5

Please sign in to comment.