Fix some mistakes (I got comments confused lol)

This commit is contained in:
2025-10-04 12:10:07 +10:00
parent 0bdcdcf126
commit 9e87805a6f

View File

@@ -60,7 +60,7 @@ Example: `let anotherVar`
Concatenates multiple strings or numbers together. Concatenates multiple strings or numbers together.
Example: `println (concat "There are " 3 " apples.")` // Prints "There are 3 apples." Example: `println (concat "There are " 3 " apples.")` # Prints "There are 3 apples."
## Indexed Operations ## Indexed Operations
@@ -72,10 +72,10 @@ Syntax: `(variable index)`
```kyn ```kyn
let myList = ["a", "b", "c"] let myList = ["a", "b", "c"]
println (myList 1) // Prints "b" println (myList 1) # Prints "b"
let myString = "hello" let myString = "hello"
println (myString 2) // Prints "l" println (myString 2) # Prints "l"
``` ```
### Set element ### Set element
@@ -85,11 +85,11 @@ Syntax: `variable index = newValue`
```kyn ```kyn
let myList = ["a", "b", "c"] let myList = ["a", "b", "c"]
myList 1 = "z" myList 1 = "z"
println $myList // Prints ["a", "z", "c"] println $myList # Prints ["a", "z", "c"]
let myString = "hello" let myString = "hello"
myString 0 = "j" myString 0 = "j"
println $myString // Prints "jello" println $myString # Prints "jello"
``` ```
### size ### size
@@ -100,10 +100,10 @@ Syntax: `(variable size)`
```kyn ```kyn
let myList = [1, 2, 3, 4] let myList = [1, 2, 3, 4]
println (myList size) // Prints 4 println (myList size) # Prints 4
let myString = "hello" let myString = "hello"
println (myString size) // Prints 5 println (myString size) # Prints 5
``` ```
## Computations ## Computations