Skip to content

Commit 4d48d3b

Browse files
committed
Improve Dune_lang.Encoder.field_l documentation
Alert user that field is omitted if list is empty
1 parent 604f4ac commit 4d48d3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dune_lang/encoder.mli

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ val field_o : string -> 'a t -> 'a option -> field
1717

1818
val field_b : string -> bool -> field
1919

20-
(** Field with inlined list as value *)
20+
(** Field with inlined list as value
21+
22+
The field is left absent if the list is empty. *)
2123
val field_l : string -> 'a t -> 'a list -> field
2224

2325
(** Same as [field_l] but to represent a single value *)

0 commit comments

Comments
 (0)