Skip to content

Commit 82fda05

Browse files
committed
Reverting captialization changes
1 parent ac5a57d commit 82fda05

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

documentation/language/08_cheatsheet.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ let user: User = User {
127127
};
128128
```
129129

130-
Accessing `record` Fields:
130+
Accessing `record` fields:
131131
```leo
132132
let user_address: address = user.owner;
133133
let user_balance: u64 = user.balance;
@@ -142,7 +142,7 @@ struct Message {
142142
}
143143
```
144144

145-
Creating an Instance of a `struct`:
145+
Creating an instance of a `struct`:
146146
```leo
147147
let msg: Message = Message {
148148
sender: aleo1ezamst4pjgj9zfxqq0fwfj8a4cjuqndmasgata3hggzqygggnyfq6kmyd4,
@@ -196,13 +196,13 @@ let arr: [u8; 4] = [1u8, 2u8, 3u8, 4u8];
196196
let empty: [u8; 0] = [];
197197
```
198198

199-
Accessing Elements:
199+
Accessing elements:
200200
```leo
201201
let first: u8 = arr[0]; // Get the first element
202202
let second: u8 = arr[1]; // Get the second element
203203
```
204204

205-
Looping Over Arrays:
205+
Looping over arrays:
206206
```leo
207207
let numbers: [u32; 3] = [5u32, 10u32, 15u32];
208208
@@ -214,20 +214,20 @@ for i: u8 in 0u8..3u8 {
214214
```
215215

216216
## 7. Tuples
217-
Declaring Tuples:
217+
Declaring tuples:
218218
```leo
219219
// NOTE: Tuples cannot be empty!
220220
let t: (u8, bool, field) = (42u8, true, 100field);
221221
```
222222

223223

224-
Accessing Tuple Elements:
224+
Accessing tuple elements:
225225

226226
```leo
227227
// Using de-structuring
228228
let (a, b, c) = t;
229229
230-
// Using index-based accessing
230+
//Using index-based accessing
231231
let first: u8 = t.0;
232232
let second: bool = t.1;
233233
let third: field = t.2;

0 commit comments

Comments
 (0)