Skip to content

Commit b886deb

Browse files
willskevmoo
authored andcommitted
Minor README tidy for Dart 2. (flutter#10)
- Remove new - use single quotes
1 parent dfe8853 commit b886deb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'package:clock/clock.dart';
1717
T runWithTiming<T>(T callback()) {
1818
var stopwatch = clock.stopwatch()..start();
1919
var result = callback();
20-
print("It took ${stopwatch.elapsed}!");
20+
print('It took ${stopwatch.elapsed}!');
2121
return result;
2222
}
2323
```
@@ -35,13 +35,13 @@ import 'package:fake_async/fake_async.dart';
3535
import 'package:test/test.dart';
3636
3737
void main() {
38-
test("runWithTiming() prints the elapsed time", () {
39-
new FakeAsync().run((async) {
38+
test('runWithTiming() prints the elapsed time', () {
39+
FakeAsync().run((async) {
4040
expect(() {
4141
runWithTiming(() {
42-
async.elapse(new Duration(seconds: 10));
42+
async.elapse(Duration(seconds: 10));
4343
});
44-
}, prints("It took 0:00:10.000000!"));
44+
}, prints('It took 0:00:10.000000!'));
4545
});
4646
});
4747
}

0 commit comments

Comments
 (0)