Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: sky/sdk/README.md

Issue 1091613002: Update README per recommendations from Seth: (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/README.md
diff --git a/sky/sdk/README.md b/sky/sdk/README.md
index 4426c4d594bc8221a484d74dac2d026f2848dcf2..efbea286dfc8fa1387afc08a5e4594e56b8e8eed 100644
--- a/sky/sdk/README.md
+++ b/sky/sdk/README.md
@@ -32,9 +32,7 @@ The simplest Sky app is, appropriately, HelloWorldApp:
import 'package:sky/framework/fn.dart';
class HelloWorldApp extends App {
- UINode build() {
- return new Text('Hello, world!');
- }
+ Node build() => new Text('Hello, world!');
Hixie 2015/04/15 19:10:30 The reason not to do this is that in 99% of cases,
sethladd 2015/04/15 19:20:19 Totally fair.
}
void main() {
@@ -64,10 +62,9 @@ ergonomic interface:
```dart
import 'package:sky/framework/net/fetch.dart';
-void main() {
- fetch('example.txt').then((Response response) {
- print(response.bodyAsString());
- });
+void main() async {
Hixie 2015/04/15 19:10:30 does this work? I sent feedback to dart-discuss as
sethladd 2015/04/15 19:20:19 good catch. I should have removed the void annotat
+ var response = await fetch('example.txt');
+ print(response.bodyAsString());
}
```
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698