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

Unified Diff: pkg/serialization/lib/serialization.dart

Issue 13581006: Fix bug in code sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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: pkg/serialization/lib/serialization.dart
diff --git a/pkg/serialization/lib/serialization.dart b/pkg/serialization/lib/serialization.dart
index a72dc571698021b17500d43764cafe348e484158..130be2741fa33dfd53dfdbeb26d59927353a605c 100644
--- a/pkg/serialization/lib/serialization.dart
+++ b/pkg/serialization/lib/serialization.dart
@@ -16,13 +16,15 @@
* address.city = 'Seattle';
* var serialization = new Serialization()
* ..addRuleFor(address);
- * String output = serialization.write(address);
+ * Map output = serialization.write(address);
*
* This creates a new serialization and adds a rule for address objects. Right
* now it has to be passed an address instance because of limitations using
- * Address as a literal. Then we ask the Serialization to write the address
+ * Address as a literal. Then we ask the [Serialization] to write the address
* and we get back a Map which is a [json]able representation of the state of
- * the address and related objects.
+ * the address and related objects. Note that while the output in this case
+ * is a [Map], the type will vary depending on which output format we've told
+ * the [Serialization] to use.
*
* The version above used reflection to automatically identify the public
* fields of the address object. We can also specify those fields explicitly.
« 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