Skip to content

Documenting return types using Julia syntaxΒ #22804

@musm

Description

@musm

It looks like Base is using the following convention to document return types

"""
    foo(x::Integer) -> Integer
"""
foo(x::Integer) = x

The proposal is to use Julia's return syntax instead, e.g.

"""
    foo(x::Integer)::Integer
"""
foo(x::Integer) = x

related #4902

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentationdocsystemThe documentation building system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions