summaryrefslogtreecommitdiff
path: root/An empty tuple is called a unit.md
blob: a97056a34e83cbc5f81a3df3b6679a59108ccc7c (plain)
1
2
3
[[Rust]]

An empty tuple `()` is named a `unit`. This acts as a sort of null value, it is the default value of functions that return nothing. So instead of saying it returns null I should say it returns a unit.