Skip to content

Commit c3cad96

Browse files
authored
fix: Polish function call and unit type docs (#8995)
1 parent 4b69b5e commit c3cad96

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/reference/src/components/cairo/modules/language_constructs/pages/function-calls.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Arguments can also be specified explicitly by the parameter name.
6464
For example `inc_3(x: 7)`.
6565
This is called a "named argument" and it verifies that the name of the parameter is correct,
6666
to 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
6969
shorthand for writing `inc_3(x: x)` is to simply write `inc_3(:x)`.
7070
This lets you write the name only once, but still verifies it.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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], `()`).
54
It is represented by a tuple with no elements.
65
Its size is always zero, and it is guaranteed to not exist in the compiled code.

0 commit comments

Comments
 (0)