Skip to content

Commit b6e79f1

Browse files
committed
docs: clarify behavior of nested structs
relates to #62
1 parent 9392084 commit b6e79f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

query/encode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ type Encoder interface {
114114
//
115115
// Non-nil pointer values are encoded as the value pointed to.
116116
//
117-
// Nested structs are encoded including parent fields in value names for
118-
// scoping. e.g:
117+
// Nested structs have their fields processed recursively and are encoded
118+
// including parent fields in value names for scoping. For example,
119119
//
120120
// "user[name]=acme&user[addr][postcode]=1234&user[addr][city]=SFO"
121121
//

0 commit comments

Comments
 (0)