Skip to content

Docs 7.3.3 Constraints: incorrect example code  #1613

@rwaldron

Description

@rwaldron

The given example:

pure fn is_less_than(int a, int b) -> bool {
     ret a < b;
}

Should be:

pure fn is_less_than(a: int, b: int) -> bool {
     ret a < b;
}

(Changes to the argument list)

Patch to follow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions