Skip to content

Commit

Permalink
add small comment
Browse files Browse the repository at this point in the history
  • Loading branch information
siscia committed Mar 8, 2022
1 parent 4526361 commit 8b84116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ua/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func writeArray(val reflect.Value, name string) ([]byte, error) {
buf.WriteUint32(uint32(val.Len()))

// loop over elements
// we write all the elements, also the zero values
for i := 0; i < val.Len(); i++ {
ename := fmt.Sprintf("%s[%d]", name, i)
b, err := encode(val.Index(i), ename)
Expand Down

0 comments on commit 8b84116

Please sign in to comment.