Skip to content

Commit 5828158

Browse files
authored
fix: typos in documentation files (#7110)
1 parent 125ea35 commit 5828158

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

docs/reference/src/components/cairo/modules/getting_started/pages/compiling-starknet-contracts.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Compile the ContractClass of a CompiledClass:
1717

1818
[source,bash]
1919
----
20-
cargo run --bin starknet-sierra-compile -- /path/to/input.json /path/to/output.casm'
20+
cargo run --bin starknet-sierra-compile -- /path/to/input.json /path/to/output.casm
2121
----

docs/reference/src/components/cairo/modules/language_constructs/pages/functions.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ In the example above, the return type is of type `T`.
9090

9191
The function body is the code that is executed when the function is called.
9292
It is enclosed by the curly braces (`{...}`) and consists of a list of 0 or
93-
more xref:statements.adoc[statements], and an then an optional xref:expressions.adoc[expression]
93+
more xref:statements.adoc[statements], and then an optional xref:expressions.adoc[expression]
9494
which is called the "tail expression".
9595

9696
The statements are executed one after the other in the defined order.

docs/reference/src/components/cairo/modules/language_constructs/pages/linear-types.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn main() {
3737
Note: the snapshot operator `@` (See the docs about snapshot) is considered not moving a value.
3838

3939
== Clone
40-
Sometime a value can't be trivially copied, but we can still use code to build a copy of it.
40+
Sometimes a value can't be trivially copied, but we can still use code to build a copy of it.
4141
For example, a value containing an `Array` cannot be copied, but we can still clone it by cloning
4242
the array it contains with `.clone()`.
4343
This can be done by implementing or deriving the `Clone` trait. The derived implementation requires
@@ -71,7 +71,7 @@ fn main() {
7171
----
7272

7373
== Destructors
74-
Sometime a value must not be dropped, but we can still use code to get rid of it.
74+
Sometimes a value must not be dropped, but we can still use code to get rid of it.
7575
For example, a value containing a `Dict` cannot be dropped, but we can still deconstruct it by
7676
destructing the dict it contains with `.destruct()`.
7777
This can be done by implementing or deriving the `Destruct` trait, which will be called

docs/reference/src/components/cairo/modules/language_constructs/pages/literal-expressions.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Cairo syntax considers `-1` as an application of the xref:negation-operators.ado
6262

6363
== Short string literals
6464

65-
A short string is a ascii-string whose length is limited by the type that holds it.
65+
A short string is an ascii-string whose length is limited by the type that holds it.
6666
The default type is a `felt252` which limits the length of the string to 31 characters.
6767
A short string literal may be followed by an underscore character (`_`)
6868
and then a __literal suffix__ just like a numerical literal.

docs/reference/src/components/cairo/modules/language_constructs/pages/match-expressions.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ match enum_var {
4444
}
4545
----
4646

47-
Where `enum_var` is an instance of some xref:enums.adoc[enum] and `variant_0``, `variant_1`, ...,
48-
`variant_k`` are all the variants of the said enum, order in the way that they were declared.
47+
Where `enum_var` is an instance of some xref:enums.adoc[enum] and `variant_0`, `variant_1`, ...,
48+
`variant_k` are all the variants of the said enum, order in the way that they were declared.
4949

5050
=== Match on an felt252.
5151

docs/reference/src/components/cairo/modules/language_constructs/pages/variables.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn add(x: u32, mut y: u32) -> u32 {
4949
5050
fn test() {
5151
let x = 1;
52-
ley y = 2;
52+
let y = 2;
5353
assert(add(x, y) == 3, 'Should be equal.');
5454
assert(y == 1, 'Should be equal.');
5555
}

0 commit comments

Comments
 (0)