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

Why gsub is not used? #64

Open
justinemar opened this issue Jun 6, 2017 · 1 comment
Open

Why gsub is not used? #64

justinemar opened this issue Jun 6, 2017 · 1 comment

Comments

@justinemar
Copy link

For this question
Replace the "l" in the following string with "m":

word = "lace"

we could do word.gsub("l", "m")

instead

word[0] = "m"
puts word
@MrPowers
Copy link
Owner

MrPowers commented Jun 7, 2017

Yep, you're right that gsub will work for this example!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants