Fix pluralize function
Signed-off-by: Etienne Millon <me@emillon.org>
This commit is contained in:
parent
0603f4fca6
commit
0e781e87e1
|
@ -1169,9 +1169,9 @@ module Executables = struct
|
||||||
|
|
||||||
let pluralize s ~multi =
|
let pluralize s ~multi =
|
||||||
if multi then
|
if multi then
|
||||||
s
|
|
||||||
else
|
|
||||||
s ^ "s"
|
s ^ "s"
|
||||||
|
else
|
||||||
|
s
|
||||||
|
|
||||||
let common =
|
let common =
|
||||||
let%map buildable = Buildable.t
|
let%map buildable = Buildable.t
|
||||||
|
|
|
@ -19,7 +19,7 @@ executable(s) stanza works the same way
|
||||||
File "dune", line 1, characters 0-36:
|
File "dune", line 1, characters 0-36:
|
||||||
(executables (public_names foo bar))
|
(executables (public_names foo bar))
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Error: name field may not be omitted before dune version 1.1
|
Error: names field may not be omitted before dune version 1.1
|
||||||
[1]
|
[1]
|
||||||
|
|
||||||
there's only a public name but it's invalid as a name
|
there's only a public name but it's invalid as a name
|
||||||
|
|
|
@ -9,13 +9,15 @@ displayed. This can happen for:
|
||||||
I have the choice between these ones:
|
I have the choice between these ones:
|
||||||
- pkg1 (because of pkg1.opam)
|
- pkg1 (because of pkg1.opam)
|
||||||
- pkg2 (because of pkg2.opam)
|
- pkg2 (because of pkg2.opam)
|
||||||
You need to add a (package ...) field to this (executables) stanza.
|
You need to add a (package ...) field to this (executable) stanza.
|
||||||
[1]
|
[1]
|
||||||
|
|
||||||
- (documentation)
|
- (documentation)
|
||||||
|
|
||||||
$ dune build --root documentation
|
$ dune build --root documentation
|
||||||
File "dune", line 1, characters 0-15:
|
File "dune", line 1, characters 0-15:
|
||||||
|
(documentation)
|
||||||
|
^^^^^^^^^^^^^^^
|
||||||
Error: I can't determine automatically which package this stanza is for.
|
Error: I can't determine automatically which package this stanza is for.
|
||||||
I have the choice between these ones:
|
I have the choice between these ones:
|
||||||
- pkg1 (because of pkg1.opam)
|
- pkg1 (because of pkg1.opam)
|
||||||
|
|
Loading…
Reference in New Issue