Fix spelling error in doc (#1078)

pull/1081/head
Phil Porada 1 year ago committed by GitHub
parent b95730fb11
commit c0b3430b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      doc.go

@ -232,16 +232,16 @@ require another 'keys' and 'endkeys' tag. These tags are only valid for maps.
Example #1
map[string]string with validation tag "gt=0,dive,keys,eg=1|eq=2,endkeys,required"
map[string]string with validation tag "gt=0,dive,keys,eq=1|eq=2,endkeys,required"
// gt=0 will be applied to the map itself
// eg=1|eq=2 will be applied to the map keys
// eq=1|eq=2 will be applied to the map keys
// required will be applied to map values
Example #2
map[[2]string]string with validation tag "gt=0,dive,keys,dive,eq=1|eq=2,endkeys,required"
// gt=0 will be applied to the map itself
// eg=1|eq=2 will be applied to each array element in the the map keys
// eq=1|eq=2 will be applied to each array element in the the map keys
// required will be applied to map values
Required

Loading…
Cancel
Save