Skip to content

Commit c8fa012

Browse files
cherrymuipull[bot]
authored andcommitted
doc/next: reword map iterator function notes
The notes don't define identifiers m and seq. Describe in words instead. While here, rename 3-structs.md to 4-structs.md. For #65614. Change-Id: I6690f552903d1870c70e28673c87ac84b7c5c041 Reviewed-on: https://go-review.googlesource.com/c/go/+/592195 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent c769eb0 commit c8fa012

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/next/6-stdlib/3-iter.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ The [slices] package adds several functions that work with iterators:
2222
sub-slices of up to n elements of a slice.
2323

2424
The [maps] package adds several functions that work with iterators:
25-
- [All](/pkg/maps#All) returns an iterator over key-value pairs from m.
26-
- [Keys](/pkg/maps#Keys) returns an iterator over keys in m.
27-
- [Values](/pkg/maps#Values) returns an iterator over values in m.
28-
- [Insert](/pkg/maps#Insert) adds the key-value pairs from seq to m.
29-
- [Collect](/pkg/maps#Collect) collects key-value pairs from seq into a new map and returns it.
25+
- [All](/pkg/maps#All) returns an iterator over key-value pairs from a map.
26+
- [Keys](/pkg/maps#Keys) returns an iterator over keys in a map.
27+
- [Values](/pkg/maps#Values) returns an iterator over values in a map.
28+
- [Insert](/pkg/maps#Insert) adds the key-value pairs from an iterator to an existing map.
29+
- [Collect](/pkg/maps#Collect) collects key-value pairs from an iterator into a new map and returns it.
File renamed without changes.

0 commit comments

Comments
 (0)