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

Unified Diff: src/site/docs/dart-up-and-running/ch03.markdown

Issue 1301343002: add null-aware operators to the language tour (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: incorporate Gilad's review comment Created 5 years, 4 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 | « src/site/docs/dart-up-and-running/ch02.markdown ('k') | src/site/docs/dart-up-and-running/preface.markdown » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/docs/dart-up-and-running/ch03.markdown
diff --git a/src/site/docs/dart-up-and-running/ch03.markdown b/src/site/docs/dart-up-and-running/ch03.markdown
index 74ec8a407aba529f0be6dacb940b978bffd6f3ea..562449238590b53bb0b96c0466ec140ba672f20b 100644
--- a/src/site/docs/dart-up-and-running/ch03.markdown
+++ b/src/site/docs/dart-up-and-running/ch03.markdown
@@ -967,7 +967,7 @@ implementing the Exception interface:
class FooException implements Exception {
final String msg;
const FooException([this.msg]);
- String toString() => msg == null ? 'FooException' : msg;
+ String toString() => msg ?? 'FooException';
}
{% endprettify %}
« no previous file with comments | « src/site/docs/dart-up-and-running/ch02.markdown ('k') | src/site/docs/dart-up-and-running/preface.markdown » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698