Fix example usage in README and dartdoc (#17)
diff --git a/README.md b/README.md
index a3cfdc6..761ec7e 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
void main() {
final yamlEditor = YamlEditor('{YAML: YAML}');
- yamlEditor.assign(['YAML'], "YAML Ain't Markup Language");
+ yamlEditor.update(['YAML'], "YAML Ain't Markup Language");
print(yamlEditor);
// Expected output:
// {YAML: YAML Ain't Markup Language}
diff --git a/lib/yaml_edit.dart b/lib/yaml_edit.dart
index f19dbd4..c89c3b8 100644
--- a/lib/yaml_edit.dart
+++ b/lib/yaml_edit.dart
@@ -11,11 +11,11 @@
/// import 'package:yaml_edit/yaml_edit.dart';
///
/// void main() {
-/// final yamlEditor = YamlEditor('{YAML: YAML}');
-/// yamlEditor.update(['YAML'], "YAML Ain't Markup Language");
-/// print(yamlEditor);
-/// // Expected Output:
-/// // {YAML: YAML Ain't Markup Language}
+/// final yamlEditor = YamlEditor('{YAML: YAML}');
+/// yamlEditor.update(['YAML'], "YAML Ain't Markup Language");
+/// print(yamlEditor);
+/// // Expected Output:
+/// // {YAML: YAML Ain't Markup Language}
/// }
/// ```
///