Misinfo in Ruby concept exercise

I’m a new learner here, happy to find this great app and community😆

I found a tiny mistake in Ruby Exercise Document.

# as-is
unless value < 2
  "1 is not greater than 2"
end
# => "1 is greater than 2"
# to-be
unless value < 2
  "1 is not greater than 2"
else
  "1 is greater than 2"
end
# => "1 is greater than 2"

It’s just a minor mistake, but I wanna fix this for my first PR if possible. May I?

Hey. Thanks!

Yes, I actually don’t want unless/else pair in this group at all. It’s not used in the exercise, so shouldn’t be here.

So you can delete this bit entirely:

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

Thanks :slight_smile:

2 Likes

Yes, I actually don’t want unless/else pair in this group at all. It’s not used in the exercise, so shouldn’t be here.

In that sense, unless statement section should be remove as well?

Or, only remove unless/else pair from Else statement section?

I’m ok with the unless section, but not the unless/else section - so remove that one. Thanks :slight_smile:

2 Likes

I have reopened and approved it.

If no one brings it in by the time I look at it in a few hours, I will do that then.

Thank you for doing the work and linking the conversation to the pull request!

1 Like

And to update exercism/ruby#1713 has been brought in.

3 Likes