helper/schema: comment

This commit is contained in:
Mitchell Hashimoto 2014-08-14 23:33:30 -07:00
parent 7f14708e71
commit 878d844f5c
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ func (m schemaMap) diffList(
switch t := schema.Elem.(type) {
case *Schema:
// Copy the schema so that we can set Computed/ForceNew from
// the parent schema (the TypeList).
t2 := *t
t2.Computed = schema.Computed
t2.ForceNew = schema.ForceNew