README.md: Unify simple/detailed examples presentation

This commit is contained in:
Jean-Sébastien Pédron 2016-11-13 17:48:28 +01:00
parent 88af398735
commit 57c050ec7a
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC

View File

@ -170,10 +170,12 @@ If we use the following YAML document:
version: 9.0-RELEASE-p3
```
Simple documents:
* Simple documents:
```erlang
yamerl_constr:file("system.yaml").
```
```erlang
% List of documents.
[
@ -188,10 +190,12 @@ yamerl_constr:file("system.yaml").
]
```
Full documents:
* Full documents:
```erlang
yamerl_constr:file("system.yaml", [{detailed_constr, true}]).
```
```erlang
% List of documents.
[