Skip to content

Commit

Permalink
Merge pull request #49 from mardukbp/patch-2
Browse files Browse the repository at this point in the history
Fixed code block in sigils.adoc
  • Loading branch information
wintermeyer authored Oct 30, 2024
2 parents 39a5c26 + f94e755 commit 8f94873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ROOT/pages/elixir/sigils.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ For the `~w` sigil, you can add a `c`, `s`, or `a` after the `w`, changing the t
Here are some examples:

[source,elixir]

----
iex> ~w(hello world this is Elixir)c
[~c"hello", ~c"world", ~c"this", ~c"is", ~c"Elixir"]
Expand All @@ -123,6 +123,7 @@ iex> ~w(hello world this is Elixir)s
iex> ~w(hello world again)a
[:hello, :world, :again]
----

Also note that you can use different delimiters for your `~w` sigil, not just parentheses. For example, `~w{hello world this is Elixir}`, `~w/hello world this is Elixir/` and `~w|hello world this is Elixir|` are all valid.

Expand Down

0 comments on commit 8f94873

Please sign in to comment.