Fix documentation for Map validation
@@ -167,17 +167,13 @@ func ArrayOf(v interface{}, fn ...func()) *expr.Array {
//
// Example:
//
-// var ReviewByID = MapOf(Int64, String, func() {
-// Key(func() {
-// Minimum(1) // Validates keys of the map
-// })
+// var Review = Type("Review", func() {
+// Attribute("ratings", MapOf(Bottle, Int32), "Bottle ratings", func() {
// Elem(func() {
-// Pattern("[a-zA-Z]+") // Validates values of the map
+// Minimum(1)
+// Maximum(5)
// })
// })
-//
-// var Review = Type("Review", func() {
-// Attribute("ratings", MapOf(Bottle, Int32), "Bottle ratings")
// })
//
func MapOf(k, v interface{}, fn ...func()) *expr.Map {
