Skip to content

Commit

Permalink
Fix Map.fetch return value
Browse files Browse the repository at this point in the history
`2` => `{:ok, 2}`
  • Loading branch information
cshintov committed Sep 3, 2023
1 parent c2f2423 commit b0def1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion concepts/structs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Since structs are built on maps, we can use most map functions to get and manipu
plane.engine
# => nil
Map.fetch(plane, :wings)
# => 2
# => {:ok, 2}
```

- update field values
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/remote-control-car/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Since structs are built on maps, we can use most map functions to get and manipu
plane.engine
# => nil
Map.fetch(plane, :wings)
# => 2
# => {:ok, 2}
```

- update field values
Expand Down

0 comments on commit b0def1b

Please sign in to comment.