Skip to content

Optional function/method parameters incorrectly formatted #2059

Closed
@cbracken

Description

@cbracken

Originally filed by @jeffque as google/quiver-dart#575:

The documentation for the function quiver.core.firstNonNull is being displayed like this:

firstNonNull(dynamic o1, [ dynamic o2, [ dynamic o3 dynamic o4 ])

with an extra square brakets between o1 and o2. I also noted a lack of comma separating o3 and o4 now. Maybe related?

It can be found at least here and here

But, seeing the code, I would expect something like this

firstNonNull(dynamic o1, dynamic o2, [ dynamic o3, dynamic o4 ])

or this:

firstNonNull(o1, o2, [ o3, o4 ])

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions