From f94e7554ed2239a831adf2023159af8ff017cbbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marduk=20Bola=C3=B1os?= Date: Wed, 30 Oct 2024 15:52:51 +0100 Subject: [PATCH] Fixed code block in sigils.adoc Added delimiters to the code block in the examples for the ~w sigil so that all examples are rendered as Elixir code. --- modules/ROOT/pages/elixir/sigils.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/elixir/sigils.adoc b/modules/ROOT/pages/elixir/sigils.adoc index 71e96a3..ab82bcd 100644 --- a/modules/ROOT/pages/elixir/sigils.adoc +++ b/modules/ROOT/pages/elixir/sigils.adoc @@ -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"] @@ -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.