Skip to content

Commit

Permalink
Update introduction.md (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelton Brown authored Nov 1, 2023
1 parent e1e1bf4 commit e40ac14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/concept/wings-quest/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swift has 3 [logical operators (`!`, `||`, `&&`)][logical-operators] which are u
### And(`&&`)

The [_and_ operator][and] in Swift is represented by `&&` and returns `true` if both values given are `true` otherwise it returns `false`.
When using the _and_ operator, one Bool be placed on the right side of the `&&` and another one on the left side.
When using the _and_ operator, one Bool is placed on the right side of the `&&` and another one on the left side.

```Swift
true && true // true
Expand All @@ -18,7 +18,7 @@ true && false // false

### Or(`||`)

The [_or_ operator][or] in Swift is represented by `||` and returns `true` if **at least one** of values given is `true` if both of the values are `false` then it returns `false`.
The [_or_ operator][or] in Swift is represented by `||` and returns `true` if **at least one** of values given is `true`. If both of the values are `false` then it returns `false`.
When using the _or_ operator one bool should be placed on the right side of the `||` and another one on the left side.

```swift
Expand All @@ -29,7 +29,7 @@ false || false // false

### Not(`!`)

The [_not_ operator][not] in Swift is represented by `!` and returns `true` if the given Bool is `false` and returns `false` if `true` is given.
The [_not_ operator][not] in Swift is represented by `!` and returns `true` if the given Bool is `false`, and returns `false` if `true` is given.
When using the _not_ operator one Bool should be placed after the operator (`!`).

```swift
Expand Down

0 comments on commit e40ac14

Please sign in to comment.