Permalink
Browse files

Clarify why double-quoted strings are sensible.

  • Loading branch information...
1 parent 305d096 commit 24ba1833d563dfe4bf1bbe260587c420ad542c11 @fatbusinessman fatbusinessman committed Feb 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ruby.md
View
2 ruby.md
@@ -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

0 comments on commit 24ba183

Please sign in to comment.