New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type annotation in sample code for Decode.dict #302

Merged
merged 1 commit into from Jul 20, 2015

Conversation

Projects
None yet
2 participants
@rtfeldman
Member

rtfeldman commented Jul 20, 2015

The docs for Decode.dict had an inaccurate type annotation in their code sample (showing Int instead of Float), which this fixes.

Before:

-- { mercury: 0.33, venus: 4.87, earth: 5.97, ... }
planetMasses : Decoder (Dict String Int)
planetMasses =
    dict float

After:

-- { mercury: 0.33, venus: 4.87, earth: 5.97, ... }
planetMasses : Decoder (Dict String Float)
planetMasses =
    dict float

evancz pushed a commit that referenced this pull request Jul 20, 2015

Merge pull request #302 from rtfeldman/fix-decoder-docs
Fix type annotation in sample code for Decode.dict

@evancz evancz merged commit cb93044 into elm:master Jul 20, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Jul 20, 2015

Member

Nice catch, thanks!

Member

evancz commented Jul 20, 2015

Nice catch, thanks!

@rtfeldman rtfeldman deleted the rtfeldman:fix-decoder-docs branch Jul 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment