From a5f203278e7bc0a7af852009b320923c1dd20763 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Mon, 20 Apr 2015 16:19:13 -0400 Subject: [PATCH] Fix spelling of "dynamically"; add missing letter --- 04_dialyzer.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/04_dialyzer.asciidoc b/04_dialyzer.asciidoc index 1b25468..9a9c6e9 100644 --- a/04_dialyzer.asciidoc +++ b/04_dialyzer.asciidoc @@ -15,7 +15,7 @@ annotations. These are strictly optional in that if you don't specify them the code will still compile and they do not affect the way that the code runs. What you can do with them is use tools like +dialyzer+ to check that the program is consistent. If you do not include types -dialyzer will dynamicly derive the types from the code. But it will +dialyzer will dynamically derive the types from the code. But it will often assign a more broad type than might be called for. Using type annotations and dialyzer it is possible to express many @@ -107,7 +107,7 @@ are good style). Integers can also be a good type, so you could have a type +http_success_codes()+ can be defined as +200|201|202|203|204+ or just +200..204+. -An array can e indicated as one would expect with square brackets, +An array can be indicated as one would expect with square brackets, the type +[]+ indicates an empty array, while an array of integers would be shown as +[integer()]+, and a string is defined as +[char()]+ a non empty string is defined as +[char(),...]+.