From cfc9980700ebbc065a668d54574280cb3c1df0f3 Mon Sep 17 00:00:00 2001 From: Ivan Palamarchuk Date: Sat, 28 Jul 2018 02:52:00 +0300 Subject: [PATCH] Update doc for JSON::Any JSON::Any no longer has #each method --- src/json/any.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json/any.cr b/src/json/any.cr index 5048b6351acc..9d52d085cc0d 100644 --- a/src/json/any.cr +++ b/src/json/any.cr @@ -7,7 +7,7 @@ # obj["access"][1]["speed"].as_s # => "slow" # ``` # -# Note that methods used to traverse a JSON structure, `#[]`, `#[]?` and `#each`, +# Note that methods used to traverse a JSON structure, `#[]` and `#[]?`, # always return a `JSON::Any` to allow further traversal. To convert them to `String`, # `Int32`, etc., use the `as_` methods, such as `#as_s`, `#as_i`, which perform # a type check against the raw underlying value. This means that invoking `#as_s`