diff --git a/docs/reference/src/components/cairo/modules/language_constructs/pages/function-calls.adoc b/docs/reference/src/components/cairo/modules/language_constructs/pages/function-calls.adoc index 6b83a128566..f01eb7ad260 100644 --- a/docs/reference/src/components/cairo/modules/language_constructs/pages/function-calls.adoc +++ b/docs/reference/src/components/cairo/modules/language_constructs/pages/function-calls.adoc @@ -64,7 +64,7 @@ Arguments can also be specified explicitly by the parameter name. For example `inc_3(x: 7)`. This is called a "named argument" and it verifies that the name of the parameter is correct, to prevent mistakes. -For example, a call to `inc_3(y: 7)` would not compile +For example, a call to `inc_3(y: 7)` would not compile. - If you use a variable as an argument and its name is the same as the parameter name, a shorthand for writing `inc_3(x: x)` is to simply write `inc_3(:x)`. This lets you write the name only once, but still verifies it. diff --git a/docs/reference/src/components/cairo/modules/language_constructs/pages/unit-type.adoc b/docs/reference/src/components/cairo/modules/language_constructs/pages/unit-type.adoc index 21c5625aa14..75948e3927a 100644 --- a/docs/reference/src/components/cairo/modules/language_constructs/pages/unit-type.adoc +++ b/docs/reference/src/components/cairo/modules/language_constructs/pages/unit-type.adoc @@ -1,6 +1,5 @@ = Unit type -A _unit type_ is a type which has only one value (xref:literal-expressions.adoc[unit literal], ` -()`). +A _unit type_ is a type which has only one value (xref:literal-expressions.adoc[unit literal], `()`). It is represented by a tuple with no elements. Its size is always zero, and it is guaranteed to not exist in the compiled code.