Skip to content

Commit 93c1cfa

Browse files
author
clauddzy
committed
Fix typos
1 parent 0ca1fc0 commit 93c1cfa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

concepts/conditionals/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here is a list of the operators and an example of when they give a `true` value:
1717

1818
| Method | Description | Example |
1919
| ------ | --------------------- | ------- |
20-
| < | less than | 5 < 4 |
20+
| < | less than | 4 < 5 |
2121
| <= | less than or equal | 4 <= 4 |
2222
| > | greater than | 3 > 1 |
2323
| >= | greater than or equal | 2 >= 2 |
@@ -66,7 +66,7 @@ end
6666

6767
## Unless statement
6868

69-
The `unless`unless statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
69+
The `unless` statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
7070

7171
```ruby
7272
value = 1
@@ -108,7 +108,7 @@ end
108108
The `elsif` statement can be used in conjunction with the if statement.
109109
The `elsif` statement will be executed if the if branch is not executed and the condition of the elsif statement is truthy.
110110
Elsif statements can be chained together and the first truthy condition will be executed.
111-
There can also be an else statement at the end of the if statement which will run if non of the earlier statement has been true.
111+
There can also be an else statement at the end of the if statement which will run if none of the earlier statements have been true.
112112

113113
```ruby
114114
value = 1

concepts/conditionals/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here is a list of the operators and an example of when they give a `true` value:
1717

1818
| Method | Description | Example |
1919
| ------ | --------------------- | ------- |
20-
| < | less than | 5 < 4 |
20+
| < | less than | 4 < 5 |
2121
| <= | less than or equal | 4 <= 4 |
2222
| > | greater than | 3 > 1 |
2323
| >= | greater than or equal | 2 >= 2 |
@@ -53,7 +53,7 @@ end
5353

5454
## Unless statement
5555

56-
The `unless`unless statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
56+
The `unless` statement works very similarly to the `if` statement but it will run the code inside the `unless` statement if the condition is falsey.
5757

5858
```ruby
5959
value = 1
@@ -95,7 +95,7 @@ end
9595
The `elsif` statement can be used in conjunction with the if statement.
9696
The `elsif` statement will be executed if the if branch is not executed and the condition of the elsif statement is truthy.
9797
Elsif statements can be chained together and the first truthy condition will be executed.
98-
There can also be an else statement at the end of the if statement which will run if non of the earlier statement has been true.
98+
There can also be an else statement at the end of the if statement which will run if none of the earlier statements have been true.
9999

100100
```ruby
101101
value = 1

0 commit comments

Comments
 (0)