Skip to content

Commit

Permalink
Update docs to reflect new variable syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbolt01 authored Apr 10, 2024
1 parent f4576cd commit 922332f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Example:

```swift
let x = 5
let x = 10 // x is now 10
x = 10 // x is now 10
```

#### Multiplication (*)
Expand Down Expand Up @@ -100,8 +100,8 @@ This example demonstrates declaring variables and performing basic arithmetic op

```swift
let x = 10
let x = x + 5 // x is now 15
let x = x * 2 // x is now 30
x = x + 5 // x is now 15
x = x * 2 // x is now 30
```

In this example, we see how a variable's value can be reassigned using the result of an arithmetic operation involving its current value.
Expand Down

0 comments on commit 922332f

Please sign in to comment.