Skip to content

Commit f769fa1

Browse files
committed
Change language feature wording based on review in dart-lang#3401
1 parent 60055b4 commit f769fa1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/src/model/language_feature.dart

+7-5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
import 'package:dartdoc/src/render/language_feature_renderer.dart';
66

77
const Map<String, String> _featureDescriptions = {
8-
'sealed': 'All direct subtypes must be defined in the same library.',
8+
'sealed':
9+
'The direct subtypes of this class will be checked for exhaustiveness in switches.',
910
'abstract': 'This type can not be directly constructed.',
10-
'base': 'This type can only be extended (not implemented or mixed in).',
11-
'interface': 'This type can only be implemented (not extended or mixed in).',
12-
'final': 'This type can neither be extended, implemented, nor mixed in.',
13-
'mixin': 'This type can be used as a class and a mixin.',
11+
'base':
12+
'This class or mixin can only be extended (not implemented or mixed in).',
13+
'interface': 'This class can only be implemented (not extended or mixed in).',
14+
'final': 'This class can neither be extended, implemented, nor mixed in.',
15+
'mixin': 'This class can be used as a class and a mixin.',
1416
};
1517

1618
const Map<String, String> _featureUrls = {

0 commit comments

Comments
 (0)