iteration instead of mapping

This commit is contained in:
Stavros Polymenis 2016-09-20 21:46:35 +01:00
parent 3b614dbd34
commit f320e91eb5

View File

@ -91,7 +91,7 @@ let to_string ymd =
let buf_acc = Buffer.add_string buf in
let str_of_ptime time = match time with
| Some t -> Ptime.to_rfc3339 t | None -> "" in
List.map buf_acc [
List.iter buf_acc [
"---\n";
"title: "; ymd.meta.title;
"\nauthors:";