Skip to content

Commit a54383d

Browse files
authored
Rename 'Collection types' to 'Collections' (#4645)
1 parent 1608aa9 commit a54383d

12 files changed

+41
-27
lines changed

firebase.json

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
{ "source": "/install/**", "destination": "/get-dart", "type": 301 },
180180
{ "source": "/install/archive", "destination": "/get-dart/archive", "type": 301 },
181181
{ "source": "/jobs", "destination": "https://docs.flutter.dev/jobs", "type": 301 },
182+
{ "source": "/language/collection-types", "destination": "/language/collections", "type": 301 },
182183
{ "source": "/language-tour", "destination": "/guides/language/language-tour", "type": 301 },
183184
{ "source": "/linter/lints/:lint*", "destination": "/tools/linter-rules#:lint", "type": 301 },
184185
{ "source": "/lints", "destination": "/tools/linter-rules", "type": 301 },

src/_data/side-nav.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
children:
4747
- title: Built-in types
4848
permalink: /language/built-in-types
49-
- title: Collection types
50-
permalink: /language/collection-types
49+
- title: Collections
50+
permalink: /language/collections
5151
- title: Typedefs
5252
permalink: /language/typedefs
5353
- title: Generics

src/_guides/language/effective-dart/usage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ for including the contents of other collections,
516516
and [`if` and `for`][control] for performing control flow while
517517
building the contents:
518518

519-
[spread]: /language/collection-types#spread-operators
520-
[control]: /language/collection-types#collection-operators
519+
[spread]: /language/collections#spread-operators
520+
[control]: /language/collections#collection-operators
521521

522522
{:.good}
523523
<?code-excerpt "usage_good.dart (spread-etc)"?>

src/_guides/language/evolution.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ For more information about how language versioning works, see the
408408

409409
[2.8 breaking changes]: https://github.com/dart-lang/sdk/issues/40686
410410
[calling native C code]: /guides/libraries/c-interop
411-
[collection for]: /language/collection-types#collection-operators
412-
[collection if]: /language/collection-types#collection-operators
411+
[collection for]: /language/collections#collection-operators
412+
[collection if]: /language/collections#collection-operators
413413
[Dart library]: /guides/libraries/create-library-packages#organizing-a-library-package
414414
[`dart compile`]: /tools/dart-compile
415415
[Dart FFI]: /guides/libraries/c-interop
@@ -424,8 +424,8 @@ For more information about how language versioning works, see the
424424
[null safety]: /null-safety
425425
[pub outdated]: /tools/pub/cmd/pub-outdated
426426
[SDK changelog]: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md
427-
[set literals]: /language/collection-types#sets
427+
[set literals]: /language/collections#sets
428428
[sound null safety]: /null-safety
429429
[sound type system]: /language/type-system
430-
[spread operator]: /language/collection-types#spread-operators
430+
[spread operator]: /language/collections#spread-operators
431431
[type aliases]: /language/typedefs

src/_guides/language/language-tour.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,20 @@ This content has moved to [Built-in types](/language/built-in-types#booleans).
5454

5555
### Lists
5656

57-
This content has moved to [Collection types](/language/collection-types#lists).
57+
This content has moved to [Collections](/language/collections#lists).
58+
59+
<a id="trailing-comma"></a>
60+
#### Trailing commas
61+
62+
This content has moved to [Collections](/language/collections#trailing-commas).
63+
64+
#### Spread operator
65+
66+
This content has moved to [Collections](/language/collections#spread-operator).
67+
68+
#### Collection operators
69+
70+
This content has moves to [Collections](/language/collections#collection-operators).
5871

5972
<a id="trailing-comma"></a>
6073
#### Trailing commas
@@ -71,11 +84,11 @@ This content has moves to [Collection types](/language/collection-types#collecti
7184

7285
### Sets
7386

74-
This content has moved to [Collection types](/language/collection-types#sets).
87+
This content has moved to [Collections](/language/collections#sets).
7588

7689
### Maps
7790

78-
This content has moved to [Collection types](/language/collection-types#maps).
91+
This content has moved to [Collections](/language/collections#maps).
7992

8093
<a id="characters"></a>
8194
### Runes and grapheme clusters

src/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
<div class="bullet-text">
115115
A programming language optimized for building user
116116
interfaces with features such as <a href="/null-safety">sound null safety</a>,
117-
the <a href="/language/collection-types#spread-operators">spread operator</a> for
118-
expanding collections, and <a href="/language/collection-types#collection-operators">collection if</a> for
117+
the <a href="/language/collections#spread-operators">spread operator</a> for
118+
expanding collections, and <a href="/language/collections#collection-operators">collection if</a> for
119119
customizing UI for each platform
120120
</div>
121121
</div>
@@ -276,8 +276,8 @@
276276
<div class="bullet-text">
277277
A programming language optimized for building user
278278
interfaces with features such as <a href="/null-safety">sound null safety</a>,
279-
the <a href="/language/collection-types#spread-operators">spread operator</a> for
280-
expanding collections, and <a href="/language/collection-types#collection-operators">collection if</a> for
279+
the <a href="/language/collections#spread-operators">spread operator</a> for
280+
expanding collections, and <a href="/language/collections#collection-operators">collection if</a> for
281281
customizing UI for each platform
282282
</div>
283283
</div>

src/language/built-in-types.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ Symbol literals are compile-time constants.
396396

397397

398398

399-
[Lists]: /language/collection-types#lists
400-
[Sets]: /language/collection-types#sets
401-
[Maps]: /language/collection-types#maps
399+
[Lists]: /language/collections#lists
400+
[Sets]: /language/collections#sets
401+
[Maps]: /language/collections#maps
402402
[asynchrony support]: /language/async
403403
[iteration]: /guides/libraries/library-tour#iteration
404404
[generator functions]: /language/generators

src/language/collection-types.md src/language/collections.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Collection types
3-
description: Summary of collection types in Dart.
2+
title: Collections
3+
description: Summary of the different types of collections in Dart.
44
---
55

66
## Lists

src/language/control-flow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ the arguments to `assert` aren't evaluated.
298298
[forEach()]: {{site.dart-api}}/{{site.data.pkg-vers.SDK.channel}}/dart-core/Iterable/forEach.html
299299
[`Iterable`]: {{site.dart-api}}/{{site.data.pkg-vers.SDK.channel}}/dart-core/Iterable-class.html
300300
[Enumerated types]: /language/enum
301-
[trailing comma]: /language/collection-types#lists
301+
[trailing comma]: /language/collections#lists
302302
[`AssertionError`]: {{site.dart-api}}/{{site.data.pkg-vers.SDK.channel}}/dart-core/AssertionError-class.html
303303
[Flutter debug mode]: {{site.flutter-docs}}/testing/debugging#debug-mode-assertions
304304
[webdev serve]: /tools/webdev#serve

src/language/enum.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ print(Color.blue.name); // 'blue'
153153
```
154154

155155
[`Enum`]: {{site.dart-api}}/{{site.data.pkg-vers.SDK.channel}}/dart-core/Enum-class.html
156-
[trailing commas]: /language/collection-types#lists
156+
[trailing commas]: /language/collections#lists
157157
[classes]: /language/classes
158158
[mixins]: /language/mixins
159159
[generative constructors]: /language/constructors#constant-constructors

src/language/functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,4 +445,4 @@ assert(foo() == null);
445445
[if statement]: /language/control-flow#if-and-else
446446
[conditional expression]: /language/operators#conditional-expressions
447447
[Flutter]: {{site.flutter}}
448-
[trailing commas]: /language/collection-types#lists
448+
[trailing commas]: /language/collections#lists

src/language/variables.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ For more information on using `const` to create constant values, see
241241
[Instance variables]: /language/classes#instance-variables
242242
[DON’T use const redundantly]: /guides/language/effective-dart/usage#dont-use-const-redundantly
243243
[type checks and casts]: /language/operators#type-test-operators
244-
[collection `if`]: /language/collection-types#collection-operators
245-
[spread operators]: /language/collection-types#spread-operators
246-
[Lists]: /language/collection-types#lists
247-
[Maps]: /language//collection-types#maps
244+
[collection `if`]: /language/collections#collection-operators
245+
[spread operators]: /language/collections#spread-operators
246+
[Lists]: /language/collections#lists
247+
[Maps]: /language/collections#maps
248248
[Classes]: /language/classes

0 commit comments

Comments
 (0)