1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-22 23:05:22 +02:00

Update Speaker Notes for compound-types.md (#207)

It could be a "gotcha" moment for readers when they associate `()` with `void` from, say, C++.
This commit is contained in:
Igor Petruk 2023-01-23 11:04:38 +00:00 committed by GitHub
parent dc894b1e9d
commit 4760295030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,5 +56,7 @@ Tuples:
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.
* You can think of it as `void` that can be familiar to you from other
programming languages.
</details>