From e4431b8589989cdc8083418a64225d6f86ef8b82 Mon Sep 17 00:00:00 2001 From: Stevo-S <4288648+Stevo-S@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:44:23 +0300 Subject: [PATCH] Clarify Any Protocol implementation derivation (#12978) A small edit on the "Deriving" section of the "Protocols" chapter in "Getting Started". Changing "we should be fine with the implementation of Any" to "should we be fine with the implementation of any" hopefully better communicates that we can use the Any implementation of the protocol if we wish to but not that we have to. --- lib/elixir/pages/getting-started/protocols.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/pages/getting-started/protocols.md b/lib/elixir/pages/getting-started/protocols.md index 2fba35d7f0..ba06b0eb0e 100644 --- a/lib/elixir/pages/getting-started/protocols.md +++ b/lib/elixir/pages/getting-started/protocols.md @@ -162,7 +162,7 @@ end The implementation above is arguably not a reasonable one. For example, it makes no sense to say that the size of a `PID` or an `Integer` is `0`. -However, we should be fine with the implementation for `Any`, in order to use such implementation we would need to tell our struct to explicitly derive the `Size` protocol: +However, should we be fine with the implementation for `Any`, in order to use such implementation we would need to tell our struct to explicitly derive the `Size` protocol: ```elixir defmodule OtherUser do