summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-22 22:55:47 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-22 22:55:47 -0800
commit29959dc55482b04388bc0c8a426650215ac3d5b2 (patch)
treedbac01d4f6afb7473fabf6fbc9a649fc72a1a051
parent91de4e0ad607aff54fa51914c08f357b535684b1 (diff)
fixing docs
-rw-r--r--management/editor/repeaters.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/management/editor/repeaters.go b/management/editor/repeaters.go
index f528894..37fb982 100644
--- a/management/editor/repeaters.go
+++ b/management/editor/repeaters.go
@@ -13,16 +13,16 @@ import (
// The `fieldName` argument will cause a panic if it is not exactly the string
// form of the struct field that this editor input is representing
// type Person struct {
-// Name string `json:"name"`
+// Names []string `json:"names"`
// }
//
// func (p *Person) MarshalEditor() ([]byte, error) {
// view, err := editor.Form(p,
// editor.Field{
-// View: editor.InputRepeater("Name", p, map[string]string{
-// "label": "Name",
+// View: editor.InputRepeater("Names", p, map[string]string{
+// "label": "Names",
// "type": "text",
-// "placeholder": "Enter the Name here",
+// "placeholder": "Enter a Name here",
// }),
// }
// )