From: Alexandre Terrasa Date: Wed, 13 May 2015 23:28:28 +0000 (-0400) Subject: lib/standard/string: fix whitespaces X-Git-Tag: v0.7.5~51^2 X-Git-Url: http://nitlanguage.org lib/standard/string: fix whitespaces Signed-off-by: Alexandre Terrasa --- diff --git a/lib/standard/string.nit b/lib/standard/string.nit index b859d69..b10affb 100644 --- a/lib/standard/string.nit +++ b/lib/standard/string.nit @@ -345,7 +345,7 @@ abstract class Text end return true end - + # Removes the whitespaces at the beginning of self # # assert " \n\thello \n\t".l_trim == "hello \n\t" @@ -1005,7 +1005,7 @@ abstract class String # assert "Hello World!".to_lower == "hello world!" fun to_lower : SELFTYPE is abstract - # Takes a camel case `self` and converts it to snake case + # Takes a camel case `self` and converts it to snake case # # assert "randomMethodId".to_snake_case == "random_method_id" # @@ -1055,11 +1055,11 @@ abstract class String prev_is_upper = false end end - + return new_str.to_s end - # Takes a snake case `self` and converts it to camel case + # Takes a snake case `self` and converts it to camel case # # assert "random_method_id".to_camel_case == "randomMethodId" #