Skip to content

Commit b4669b2

Browse files
committed
better example comments.
1 parent 99d1a6c commit b4669b2

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

examples/from-conf/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ func main() {
5252
log.Fatal(err)
5353
}
5454

55-
// Reuse array
56-
// `Append` value to array
55+
// Reuse array by resetting index and appending new values sequentially
5756
hasMore := true
5857
array.ResetAppendIndex()
5958
val := 200.0

examples/http/basic/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ func main() {
4949
log.Fatal(err)
5050
}
5151

52-
// Reuse array
53-
// `Append` value to array
52+
// Reuse array by resetting index and appending new values sequentially
5453
hasMore := true
5554
array.ResetAppendIndex()
5655
val := 200.0

examples/tcp/basic/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ func main() {
4545
log.Fatal(err)
4646
}
4747

48-
// Reuse array
49-
// `Append` value to array
48+
// Reuse array by resetting index and appending new values sequentially
5049
hasMore := true
5150
array.ResetAppendIndex()
5251
val := 200.0

0 commit comments

Comments
 (0)