Minor documentation change (#22951)

I've made a small change in the explanation of `void` types.
This commit is contained in:
Marko Schütz-Schmuck
2023-11-17 05:21:21 -04:00
committed by GitHub
parent cd84cd45ea
commit 80ffbd4571

View File

@@ -26,9 +26,8 @@ oneself.
Void type
=========
The `void` type denotes the absence of any type. Parameters of
type `void` are treated as non-existent, `void` as a return type means that
the procedure does not return a value:
The `void` type denotes the absence of any value, i.e. it is the type that contains no values. Consequently, no value can be provided for parameters of
type `void`, and no value can be returned from a function with return type `void`:
```nim
proc nothing(x, y: void): void =