File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
docs/reference/src/components/cairo/modules/language_constructs/pages Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Arguments can also be specified explicitly by the parameter name.
6464For example `inc_3(x: 7)`.
6565This is called a "named argument" and it verifies that the name of the parameter is correct,
6666to prevent mistakes.
67- For example, a call to `inc_3(y: 7)` would not compile
67+ For example, a call to `inc_3(y: 7)` would not compile.
6868- If you use a variable as an argument and its name is the same as the parameter name, a
6969shorthand for writing `inc_3(x: x)` is to simply write `inc_3(:x)`.
7070This lets you write the name only once, but still verifies it.
Original file line number Diff line number Diff line change 11= Unit type
22
3- A _unit type_ is a type which has only one value (xref:literal-expressions.adoc[unit literal], `
4- ()`).
3+ A _unit type_ is a type which has only one value (xref:literal-expressions.adoc[unit literal], `()` ).
54It is represented by a tuple with no elements.
65Its size is always zero, and it is guaranteed to not exist in the compiled code.
You can’t perform that action at this time.
0 commit comments