Skip to content

Fix incorrect examples and typos in guides - #15620

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
patric-vinicios:fix-guide-examples
Jul 16, 2026
Merged

Fix incorrect examples and typos in guides#15620
josevalim merged 1 commit into
elixir-lang:mainfrom
patric-vinicios:fix-guide-examples

Conversation

@patric-vinicios

Copy link
Copy Markdown
Contributor

The guide pages under lib/elixir/pages are not doctests, so some example outputs drifted from what current Elixir prints. I re-ran each example on main (1.21.0-dev, OTP 29) with a clean IEx and updated the blocks to match the actual output. Also fixes two typos. Map ordering examples were left untouched since small-map print order is not guaranteed across OTP versions.

The guide pages under lib/elixir/pages are not doctests, so some
example outputs drifted from what current Elixir prints. I re-ran
each example on main (1.21.0-dev, OTP 29) with a clean IEx and
updated the blocks to match the actual output. Also fixes two typos.
Map ordering examples were left untouched since small-map print
order is not guaranteed across OTP versions.

Signed-off-by: Patric Vinicios <psdev7@gmail.com>
@josevalim
josevalim merged commit f9a7552 into elixir-lang:main Jul 16, 2026
16 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

@patric-vinicios
patric-vinicios deleted the fix-guide-examples branch July 16, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants