Skip to content

Commit 888b3fa

Browse files
authored
Merge pull request flutter#125 from dart-lang/opt_news
doc cleanup: - optional `new`s
2 parents 4d7c3ae + 12c9763 commit 888b3fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/src/custom_matcher.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import 'util.dart';
2828
/// and then use this for example like:
2929
///
3030
/// ```dart
31-
/// expect(inventoryItem, new HasPrice(greaterThan(0)));
31+
/// expect(inventoryItem, HasPrice(greaterThan(0)));
3232
/// ```
3333
class CustomMatcher extends Matcher {
3434
final String _featureDescription;

lib/src/type_matcher.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ TypeMatcher<T> isA<T>() => TypeMatcher<T>();
1919
/// object.
2020
///
2121
/// ```dart
22-
/// expect(shouldBeDuration, new TypeMatcher<Duration>());
22+
/// expect(shouldBeDuration, TypeMatcher<Duration>());
2323
/// ```
2424
///
2525
/// If you want to further validate attributes of the specified [Type], use the
2626
/// [having] function.
2727
///
2828
/// ```dart
2929
/// void shouldThrowRangeError(int value) {
30-
/// throw new RangeError.range(value, 10, 20);
30+
/// throw RangeError.range(value, 10, 20);
3131
/// }
3232
///
3333
/// expect(

0 commit comments

Comments
 (0)