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

String concatenation not working correctly #912

Closed
JeanMertz opened this issue Mar 21, 2014 · 3 comments
Closed

String concatenation not working correctly #912

JeanMertz opened this issue Mar 21, 2014 · 3 comments

Comments

@JeanMertz
Copy link

%Q(this is a test\n) +
%Q(to see if this works.)

# => C: Use \ instead of + to concatenate those strings.
# => "this is a test\nto see if this works."
%Q(this is a test\n) \
%Q(to see if this works.)

# => SyntaxError: unexpected ')', expecting '('
@bbatsov
Copy link
Collaborator

bbatsov commented Mar 21, 2014

Sorry about that. I'll have it fixed.

@JeanMertz
Copy link
Author

No need to apologise. Awesome project, it's made our companies code much more unified (and better looking in the process). Thank you!

@JeanMertz
Copy link
Author

@bbatsov I think I've stumbled on another one:

::File.exists? # => no error
File.exists? # => File.exists? is deprecated in favor of File.exist?.

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