Skip to content

Commit 9347d51

Browse files
authored
Merge pull request #15 from RandomSoup/jango/typos
Fix typos
2 parents 9e8ddf5 + 83d981a commit 9347d51

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ let x = [ 0, :a, 2]
167167
let y = [ :3 ]
168168
```
169169

170-
Accessing data in lists can be accomplished in a few ways. You can itterate over a list:
170+
Accessing data in lists can be accomplished in a few ways. You can iterate over a list:
171171
```
172172
let x = [ 1, 2, 3 ];
173173
@@ -231,7 +231,7 @@ x += [[ 4, 5, 6 ]];
231231

232232
### Files and Binary
233233

234-
File io is a core feature of Sack, and as such it has it's own syntax.
234+
File IO is a core feature of Sack, and as such it has it's own syntax.
235235

236236
Files are opened using the `open` keyword, and closed using the `close` keyword. There are multiple modes for opening files, and they are as follows:
237237
```
@@ -473,7 +473,7 @@ The following are valid logical operators in sack:
473473
# Not (inverts a boolean value)
474474
!
475475
```
476-
By extension `<=` and `>=` are also valid since they are a combination of the geater than and less than operators with the equal operator.
476+
By extension `<=` and `>=` are also valid since they are a combination of the greater than and less than operators with the equal operator.
477477
Operators which check for a condition return a boolean value `true` or `false`.
478478

479479
### Comments
@@ -571,15 +571,15 @@ if ( b in a ) {
571571

572572
Invalid types will result in an error:
573573
```
574-
let a = "fourty-seven";
574+
let a = "forty-seven";
575575
let b = 47;
576576
577577
# This will result in an error
578578
print ( b in a );
579579
```
580580

581581
### Loops
582-
A loop will itterate between a range of numbers starting at the first number and ending at the last for example `range( 1, 5 )` is equal to `[1, 2, 3, 4, 5]`
582+
A loop will iterate between a range of numbers starting at the first number and ending at the last for example `range( 1, 5 )` is equal to `[1, 2, 3, 4, 5]`
583583

584584
The following is an example of valid loop in range syntax:
585585
```
@@ -599,7 +599,7 @@ loop ( while a < 100 ) {
599599
}
600600
```
601601

602-
The keywords `break` and `continue` will exit the loop, or continue to the next itteration respectively.
602+
The keywords `break` and `continue` will exit the loop, or continue to the next iteration respectively.
603603

604604
```
605605
# Looping from 1 to 10, but breaking out at 5
@@ -712,7 +712,7 @@ helloworld();
712712
```
713713

714714
You can import modules that are in the current directory without specifying the path to the file, else you will need to specify the path.
715-
By default sack first tries to import modlues ending with ".sk", if that fails it will look for files ending with ".sack", if that also fails it will cause an error on runtime.
715+
By default sack first tries to import modules ending with ".sk", if that fails it will look for files ending with ".sack", if that also fails it will cause an error on runtime.
716716

717717
### Scope
718718
The following rules govern scope in sack.

0 commit comments

Comments
 (0)