mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-24 07:21:05 +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:
parent
dc894b1e9d
commit
4760295030
@ -56,5 +56,7 @@ Tuples:
|
|||||||
the only valid value of that type - that is to say both the type and its value
|
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
|
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.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user