From c20a35e5ef7cf8bfcd2942f68891bec757ee7334 Mon Sep 17 00:00:00 2001 From: Sciemon Date: Sun, 30 Jan 2022 09:59:48 +0100 Subject: [PATCH] typo --- docs/src/lecture_06/currencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/lecture_06/currencies.md b/docs/src/lecture_06/currencies.md index f85b33135..68170b8bc 100644 --- a/docs/src/lecture_06/currencies.md +++ b/docs/src/lecture_06/currencies.md @@ -56,7 +56,7 @@ julia> b = BankAccount("Paul", Euro) BankAccount{Euro}("Paul", Currency[Euro(0.0)]) ``` -First, we observe that we use the `Euro` type (and not its instance) to instantiate the `BankAccount` type. The reason is the definition of the inner constructor for `BankAccount`, where the type annotation is `::Type{<:Currency}`. This is in contrast with `::Currency`. The former requires that the argument is a type, while the former needs an instance. +First, we observe that we use the `Euro` type (and not its instance) to instantiate the `BankAccount` type. The reason is the definition of the inner constructor for `BankAccount`, where the type annotation is `::Type{<:Currency}`. This is in contrast with `::Currency`. The former requires that the argument is a type, while the latter needs an instance. Second, `BankAccount` is a parametric type, as can be seen from `BankAccount{Euro}`. In our example, this parameter plays the role of the primary account currency.