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

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

Issue 23596007: Remove usage of dart:json. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update generated library. Created 7 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
Index: pkg/yaml/lib/yaml.dart
diff --git a/pkg/yaml/lib/yaml.dart b/pkg/yaml/lib/yaml.dart
index 85861d564324f7762f2b34c9048029de4c135648..f0b6b461635bd34d35f4cd35af3fef3fad803b2f 100644
--- a/pkg/yaml/lib/yaml.dart
+++ b/pkg/yaml/lib/yaml.dart
@@ -31,11 +31,11 @@
/// This library currently doesn't support dumping to YAML. You should use
/// `stringify` from `dart:json` instead:
nweiz 2013/08/27 17:05:02 Update this line.
floitsch 2013/08/28 08:26:44 Done.
///
-/// import 'dart:json' as json;
+/// import 'dart:convert';
/// import 'package:yaml/yaml.dart';
/// main() {
/// var doc = loadYaml("YAML: YAML Ain't Markup Language");
-/// print(json.stringify(doc));
+/// print(JSON.encode(doc));
/// }
///
/// [pub]: http://pub.dartlang.org

Powered by Google App Engine
This is Rietveld 408576698