Skip to content

Commit

Permalink
Bugfix. closes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermeyer committed Oct 30, 2024
1 parent 4c9be8f commit 0deb7bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/ROOT/pages/elixir/data-types/strings.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,11 @@ iex> String.split("Hello, World!", ", ")
["Hello", "World!"]
----

On the other hand, the `join` function lets you combine a list of strings into a
single string:
BTW: There is no `join` function in the `String` module. But you can use `Enum.join/2` for that:

[source,elixir]
----
iex> String.join(["Hello", "World!"], ", ")
iex> Enum.join(["Hello", "World!"], ", ")
"Hello, World!"
----

Expand All @@ -167,4 +166,3 @@ These are just a few examples of the many functions available in the `String`
module. You can find the full list of functions, along with their descriptions
and examples, in the official Elixir documentation for the String module at
link:https://hexdocs.pm/elixir/String.html[hexdocs.pm/elixir/String.html].

0 comments on commit 0deb7bf

Please sign in to comment.