Skip to content

Commit 24691c4

Browse files
committed
We need to call trim() function
1 parent 92a105c commit 24691c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/strings/trimming-whitespace-from-a-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Opera, Firefox and Chrome all have a native string prototype `trim` method, and
3939
{% highlight coffeescript %}
4040
unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, ""
4141

42-
" padded string ".trim
42+
" padded string ".trim()
4343
# => 'padded string'
4444
{% endhighlight %}
4545

0 commit comments

Comments
 (0)