From 4068d55286a895fa5ffa147aeed25266fdbeaa72 Mon Sep 17 00:00:00 2001 From: Shinto C V Date: Tue, 5 Sep 2023 10:57:46 +0530 Subject: [PATCH] Fix `Map.fetch` return value (#1352) --- concepts/structs/about.md | 2 +- concepts/structs/introduction.md | 2 +- exercises/concept/remote-control-car/.docs/introduction.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/concepts/structs/about.md b/concepts/structs/about.md index 70ecfe2205..fb97d8ea6e 100644 --- a/concepts/structs/about.md +++ b/concepts/structs/about.md @@ -31,7 +31,7 @@ plane = %Plane{} plane.engine # => nil Map.fetch(plane, :wings) - # => 2 + # => {:ok, 2} ``` - Update field values diff --git a/concepts/structs/introduction.md b/concepts/structs/introduction.md index 7392839985..0c74822fd2 100644 --- a/concepts/structs/introduction.md +++ b/concepts/structs/introduction.md @@ -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 diff --git a/exercises/concept/remote-control-car/.docs/introduction.md b/exercises/concept/remote-control-car/.docs/introduction.md index 77d5901a02..046e99a1bf 100644 --- a/exercises/concept/remote-control-car/.docs/introduction.md +++ b/exercises/concept/remote-control-car/.docs/introduction.md @@ -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