Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/string.cr
Original file line number Diff line number Diff line change
@@ -1003,8 +1003,6 @@ class String
# "string".chomp # => "string"
# "x".chomp.chomp # => "x"
# ```
#
# See also: `#chop`.
def chomp
return self if empty?

0 comments on commit c4bbb59

Please sign in to comment.