Skip to content

Commit 50459a6

Browse files
authored
Switch master channel to main (#241)
1 parent a5665a3 commit 50459a6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/snippets/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.2
2+
3+
* Switch master channel to main.
4+
15
## 0.4.1
26

37
* Update dependencies.

packages/snippets/lib/src/snippet_generator.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ class SnippetGenerator {
9797
? '<div class="snippet-description">{@end-inject-html}${sample.description.trim()}{@inject-html}</div>'
9898
: '';
9999

100-
// DartPad only supports stable or master as valid channels. Use master
100+
// DartPad only supports stable or main as valid channels. Use main
101101
// if not on stable so that local runs will work (although they will
102102
// still take their sample code from the master docs server).
103103
final String channel =
104-
sample.metadata['channel'] == 'stable' ? 'stable' : 'master';
104+
sample.metadata['channel'] == 'stable' ? 'stable' : 'main';
105105

106106
final Map<String, String> substitutions = <String, String>{
107107
'description': description,

packages/snippets/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: snippets
22
description: A package for parsing and manipulating code samples in Flutter repo dartdoc comments.
33
repository: https://github.com/flutter/assets-for-api-docs/tree/main/packages/snippets
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+snippets%22
5-
version: 0.4.1
5+
version: 0.4.2
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

0 commit comments

Comments
 (0)