Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Misguide in documentation (return values) #37

@ceremcem

Description

@ceremcem

There is a misguide in documentation:

image

This function is obviously expected to return 4 (as the first line in the screenshot says) but the function name (definitely_not_4) is misleading:

definitely_not_4 = x ->
    x + 2
    4

print <|  definitely_not_4 40  #=> not 4

and it definitely returns 4:

image

...in contrast with the function name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions