PassiveSupport.String.chomp

You're seeing just the function chomp, go back to PassiveSupport.String module for more information.

Specs

chomp(String.t()) :: String.t()

Returns a copy of string with a newline removed from the end.

If there is no newline at the end of string, then it is returned unchanged

Examples

iex> chomp("hello world!\n")
"hello world!"

iex> chomp("hello\nworld!")
"hello\nworld!"

iex> chomp("multiline!\n\n")
"multiline!\n"

iex> chomp("single line!")
"single line!"