From 1faa45cf90d8b27265362993a0b4a24d92f2df45 Mon Sep 17 00:00:00 2001 From: Giovanni Visciano Date: Fri, 23 Jul 2021 14:41:00 +0200 Subject: [PATCH] docs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 578aa1b..e841e73 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ defmodule Person do @type t :: %__MODULE__{ name: String.t(), surname: String.t(), - gender: opt(:male | :female | :other), - address: opt(nonempty_list(Address.t())) + gender: option(:male | :female | :other), + address: option(nonempty_list(Address.t())) } - @type opt(x) :: nil | x + @type option(x) :: nil | x end defmodule Address do