Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix introduction.md in 'assembly-line' exercise #1713

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions exercises/concept/assembly-line/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ end

## Else statement

The `else` statement can be used in conjunction with the `if` and `unless` statements.
The `else` statement will be executed if the `if` branch or the `unless` branch is not executed.
The `else` statement can be used in conjunction with the `if` statement.
The `else` statement will be executed if the `if` branch is not executed.

```ruby
value = 1
Expand All @@ -99,11 +99,6 @@ else
"1 is not equal to 1"
end
# => "1 is equal to 1"

unless value < 2
"1 is not greater than 2"
end
# => "1 is greater than 2"
```

## "Cascading-if" statements
Expand Down