mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
schema/field: change NamedValues documentation (#1591)
This commit is contained in:
@@ -708,9 +708,9 @@ func (b *enumBuilder) Values(values ...string) *enumBuilder {
|
||||
//
|
||||
// field.Enum("priority").
|
||||
// NamedValues(
|
||||
// "LOW", "low",
|
||||
// "MID", "mid",
|
||||
// "HIGH", "high",
|
||||
// "Low", "LOW",
|
||||
// "Mid", "MID",
|
||||
// "High", "HIGH",
|
||||
// )
|
||||
//
|
||||
func (b *enumBuilder) NamedValues(namevalue ...string) *enumBuilder {
|
||||
|
||||
Reference in New Issue
Block a user