Minor README tidy for Dart 2. (#10)
- Remove new
- use single quotes
diff --git a/README.md b/README.md
index 68bdba1..fd4a131 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@
T runWithTiming<T>(T callback()) {
var stopwatch = clock.stopwatch()..start();
var result = callback();
- print("It took ${stopwatch.elapsed}!");
+ print('It took ${stopwatch.elapsed}!');
return result;
}
```
@@ -35,13 +35,13 @@
import 'package:test/test.dart';
void main() {
- test("runWithTiming() prints the elapsed time", () {
- new FakeAsync().run((async) {
+ test('runWithTiming() prints the elapsed time', () {
+ FakeAsync().run((async) {
expect(() {
runWithTiming(() {
- async.elapse(new Duration(seconds: 10));
+ async.elapse(Duration(seconds: 10));
});
- }, prints("It took 0:00:10.000000!"));
+ }, prints('It took 0:00:10.000000!'));
});
});
}