Skip to content

Incorrect rejection of {[ ]} docstring #706

@jberdine

Description

@jberdine

Code such as:

type sp =
  | Blank  (** {[ ]} *)

leads to a warning such as

Warning: Invalid documentation comment:
File "lib/Fmt.mli", line 23, characters 15-20:
'{[...]}' (code block) should not be empty.

There isn't any indication in the spec that the "preformatted source code style" should not be a single space. And for the warning in particular, being preformatted, a single space is not empty.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions