Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clarify why double-quoted strings are sensible.

  • Loading branch information...
commit 24ba1833d563dfe4bf1bbe260587c420ad542c11 1 parent 305d096
David Thompson fatbusinessman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ruby.md
2  ruby.md
View
@@ -606,7 +606,7 @@
- Try not to mix up single-quoted and double-quoted strings within a file:
it can make the code harder to read. *Definitely* don't mix up single-quoted
and double-quoted strings within a method. If in doubt, use double-quoted
- strings.
+ strings, because you’ll probably need to use interpolation somewhere.
- Avoid using `String#+` when you need to construct large data chunks.
Instead, use `String#<<`. Concatenation mutates the string instance
Please sign in to comment.
Something went wrong with that request. Please try again.