From 24691c4d9f4ea575a6b1595e0680dc7f4222d2a1 Mon Sep 17 00:00:00 2001 From: Aleksandr Motsjonov Date: Mon, 18 Jun 2012 00:33:35 +0300 Subject: [PATCH] We need to call trim() function --- chapters/strings/trimming-whitespace-from-a-string.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/strings/trimming-whitespace-from-a-string.md b/chapters/strings/trimming-whitespace-from-a-string.md index bb0ddc6..e7e9ecd 100644 --- a/chapters/strings/trimming-whitespace-from-a-string.md +++ b/chapters/strings/trimming-whitespace-from-a-string.md @@ -39,7 +39,7 @@ Opera, Firefox and Chrome all have a native string prototype `trim` method, and {% highlight coffeescript %} unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, "" -" padded string ".trim +" padded string ".trim() # => 'padded string' {% endhighlight %}