Chromium Code Reviews| 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 |