From cc514b6b925417ce0761c600fc6d6b569cb4fa06 Mon Sep 17 00:00:00 2001 From: Tim Siegel Date: Tue, 31 May 2022 14:55:02 -0400 Subject: [PATCH] Remove "visitor" reference to non-Visitor user The phrase "Regular visitor" is confusing, since `Visitor` has been defined as a non-regular user. Just call them a "user", as we do everywhere else in this example. --- book/types/custom_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/types/custom_types.md b/book/types/custom_types.md index ec27f988..561cb008 100644 --- a/book/types/custom_types.md +++ b/book/types/custom_types.md @@ -74,7 +74,7 @@ Another benefit of this approach is that each variant can have different associa ] {% endreplWithTypes %} -Try defining a `Regular` visitor with a name and age ⬆️ +Try defining a `Regular` user with a name and age ⬆️ We only added an age, but variants of a type can diverge quite dramatically. For example, maybe we want to add location for `Regular` users so we can suggest regional chat rooms. Add more associated data! Or maybe we want to have anonymous users. Add a third variant called `Anonymous`. Maybe we end up with: