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:
Ryan King 2019-02-12 09:23:42 -08:00
parent eb1346447f
commit 58166ceaf5
1 changed files with 1 additions and 2 deletions

View File

@ -148,8 +148,7 @@ type Schema struct {
// 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
// *Resource. If it is *Schema, the element type is just a simple value.
// If it is *Resource, the element type is a complex structure,
// potentially with its own lifecycle.
// If it is *Resource, the element type is a complex structure.
Elem interface{}
// The following fields are only set for a TypeList or TypeSet.