remove comment about nested schema.Resources having their own lifecycle
This comment seems to imply that you can put CRUD functions on nested schema.Resource objects. The comment goes back to the first commit to this file, but AFAICT this functionality has never been implemented.
This commit is contained in:
parent
eb1346447f
commit
58166ceaf5
|
@ -148,8 +148,7 @@ type Schema struct {
|
||||||
// Elem represents the element type. For a TypeMap, it must be a *Schema
|
// Elem represents the element type. For a TypeMap, it must be a *Schema
|
||||||
// with a Type of TypeString, otherwise it may be either a *Schema or a
|
// with a Type of TypeString, otherwise it may be either a *Schema or a
|
||||||
// *Resource. If it is *Schema, the element type is just a simple value.
|
// *Resource. If it is *Schema, the element type is just a simple value.
|
||||||
// If it is *Resource, the element type is a complex structure,
|
// If it is *Resource, the element type is a complex structure.
|
||||||
// potentially with its own lifecycle.
|
|
||||||
Elem interface{}
|
Elem interface{}
|
||||||
|
|
||||||
// The following fields are only set for a TypeList or TypeSet.
|
// The following fields are only set for a TypeList or TypeSet.
|
||||||
|
|
Loading…
Reference in New Issue