Skip to content

Commit

Permalink
Fix Map.fetch return value (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshintov authored Sep 5, 2023
1 parent c2f2423 commit 4068d55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concepts/structs/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ plane = %Plane{}
plane.engine
# => nil
Map.fetch(plane, :wings)
# => 2
# => {:ok, 2}
```

- Update field values
Expand Down
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 4068d55

Please sign in to comment.