Skip to content

Commit

Permalink
YamlStyle doc is synced with README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-sintotski committed Dec 13, 2020
1 parent fbedba4 commit ee4dc5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ dependencies:

json2yaml supports the optional argument to customize YAML formatting for various use cases.
At the moment, it supports the three following formatting styles:
- YamlStyle.generic (default) -- generic Yaml rendering
- YamlStyle.pubspecYaml -- Yaml formatting style mimicking pubspec.yaml files
- YamlStyle.pubspecLock -- Yaml formatting style mimicking pubspec.lock files generated by Dart pub
- YamlStyle.generic (default) -- Default formatting style applicable in most cases
- YamlStyle.pubspecYaml -- YAML formatting style following pubspec.yaml formatting conventions
- YamlStyle.pubspecLock -- YAML formatting style following pubspec.lock formatting conventions

YAML style is supplied as an optional argument to json2yaml():

Expand Down
2 changes: 1 addition & 1 deletion lib/src/json2yaml.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/// Yaml formatting control options
enum YamlStyle {
/// Default formatting style applicable to most of situations
/// Default formatting style applicable in most cases
generic,

/// YAML formatting style following pubspec.yaml formatting conventions
Expand Down

0 comments on commit ee4dc5a

Please sign in to comment.