From 4760295030c9bbe7b19dcd32c1e1e0c14c585abf Mon Sep 17 00:00:00 2001 From: Igor Petruk Date: Mon, 23 Jan 2023 11:04:38 +0000 Subject: [PATCH] Update Speaker Notes for compound-types.md (#207) It could be a "gotcha" moment for readers when they associate `()` with `void` from, say, C++. --- src/basic-syntax/compound-types.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/basic-syntax/compound-types.md b/src/basic-syntax/compound-types.md index 5a2cfc76..c245959d 100644 --- a/src/basic-syntax/compound-types.md +++ b/src/basic-syntax/compound-types.md @@ -55,6 +55,8 @@ Tuples: * The empty tuple `()` is also known as the "unit type". It is both a type, and the only valid value of that type - that is to say both the type and its value are expressed as `()`. It is used to indicate, for example, that a function or - expression has no return value, as we'll see in a future slide. + expression has no return value, as we'll see in a future slide. + * You can think of it as `void` that can be familiar to you from other + programming languages.