Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
meatball133 committed Sep 24, 2023
1 parent 189cac5 commit 883bca1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analyzer-comments/crystal/two-fer/string_concatenation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# string concatenation

String concatenation is perfectly valid within Ruby, but a more common way to compose a string is with [string interpolation](http://ruby-for-beginners.rubymonstas.org/bonus/string_interpolation.html). For example:
String concatenation is perfectly valid within Ruby, but a more common way to compose a string is with [string interpolation][interpolation]. For example:

```crystal
# Rather than:
Expand All @@ -9,3 +9,5 @@ String concatenation is perfectly valid within Ruby, but a more common way to co
# Consider:
"One for #{name_variable}, one for me."
```

[interpolation]: https://crystal-lang.org/reference/latest/syntax_and_semantics/literals/string.html#interpolation

0 comments on commit 883bca1

Please sign in to comment.