docs templates: document the Email type methods in more detail

This commit is contained in:
Ilya Grigoriev 2025-01-13 21:05:19 -08:00
parent d00c02fb07
commit ac1be9374b

View file

@ -166,10 +166,16 @@ The following methods are defined.
### Email type ### Email type
The email field of a signature may or may not look like an email address. It may
be empty, may not contain the symbol `@`, and could in principle contain
multiple `@`s.
The following methods are defined. The following methods are defined.
* `.local() -> String` * `.local() -> String`: the part of the email before the first `@`, usually the
* `.domain() -> String` username.
* `.domain() -> String`: the part of the email after the first `@` or the empty
string.
### Integer type ### Integer type