@@ -127,7 +127,7 @@ let user: User = User {
127127};
128128```
129129
130- Accessing ` record ` Fields :
130+ Accessing ` record ` fields :
131131``` leo
132132let user_address: address = user.owner;
133133let 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
147147let msg: Message = Message {
148148 sender: aleo1ezamst4pjgj9zfxqq0fwfj8a4cjuqndmasgata3hggzqygggnyfq6kmyd4,
@@ -196,13 +196,13 @@ let arr: [u8; 4] = [1u8, 2u8, 3u8, 4u8];
196196let empty: [u8; 0] = [];
197197```
198198
199- Accessing Elements :
199+ Accessing elements :
200200``` leo
201201let first: u8 = arr[0]; // Get the first element
202202let second: u8 = arr[1]; // Get the second element
203203```
204204
205- Looping Over Arrays :
205+ Looping over arrays :
206206``` leo
207207let 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!
220220let 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
228228let (a, b, c) = t;
229229
230- // Using index-based accessing
230+ //Using index-based accessing
231231let first: u8 = t.0;
232232let second: bool = t.1;
233233let third: field = t.2;
0 commit comments