Leslie and wolfgang
3827b73d2d
Fix struct update example in guide ( #14877 )
...
Co-authored-by: wolfgang <wolfgang.yin@gmail.com >
2025-10-30 22:53:07 +09:00
Eksperimental
c7884ca393
Elixir v1.19 introduces a warning related to structs, ( #14818 )
...
hint: given pattern matching is enough to catch typing errors, you may optionally convert the struct update into a map update. For example, instead of:
user = some_fun()
%User{user | name: "John Doe"}
it is enough to write:
%User{} = user = some_fun()
%{user | name: "John Doe"}
Since this could be seen by new-comers to the language, offering a better user experience by avoiding abbreviations. Favoring the usage of "some_function" instead of "some_fun"
2025-10-07 17:54:41 +02:00
ice_cap
8d216b87cd
Update structs.md ( #14683 )
2025-08-04 08:59:33 +02:00
Benjamin Milde
f9966230ee
Docs updates und restructuring ( #14636 )
2025-07-12 22:08:19 +02:00
José Valim
fec9899ead
Revamp Mix & OTP guides ( #14637 )
2025-07-11 15:53:07 +02:00
Gary Rennie
f54b192823
Add ETS to the Erlang Term Storage section of erlang libs ( #14644 )
...
This will ensure that it appears in the short search results on ExDoc
instead of having to navigate through to the search results.
2025-07-11 15:52:06 +02:00
Eksperimental
c03caa18cf
Use backticks around literals in documentation ( #14633 )
2025-07-10 10:22:10 +02:00
José Valim
bd68532c27
Remove explicit mentions to elixirc, as it isn't used in practice
2025-07-10 10:21:55 +02:00
Ahmed Elawad
638ec9d0ac
docs: Debugging page typo ( #14502 )
2025-05-18 09:00:58 +02:00
João Paulo Abreu
84c64807bc
Doc: Fix markdown link formatting in debugging section ( #14487 )
2025-05-10 17:13:00 +02:00
Markus Krogemann
e967d58273
Fix typo ( #14447 )
2025-04-23 08:36:48 +02:00
Jason Florentino
901e066083
Fix typo in anonymous-functions.md ( #14295 )
2025-02-24 09:13:05 +01:00
Jonatan Männchen
980500551c
Inline Licence Info & Copyright for non-test files ( #14256 )
2025-02-07 21:11:09 +01:00
Jean Klingler
adcb7c6c09
Fix String.split/3 example in guide and add note in docs ( #14223 )
2025-01-25 07:11:26 +09:00
Jean Klingler
08d844a206
Add and simplify links to erlang documentation ( #14179 )
...
* Link more erlang modules in docs
* Fix epmd link
* Use `:atom` syntax to link erlang modules
2025-01-12 18:58:38 +09:00
Sebastia Ramon
68a17aea7e
Fix typo in alias-require-and-import.md ( #14086 )
2024-12-20 09:56:09 +01:00
José Valim
87bba10b00
Add support for :group doc metadata and use it in IEx.Autocomplete
2024-12-16 13:52:46 +01:00
Albin Kocheril Chacko
2539f85355
Fix a typo in the docs ( #13937 )
2024-10-29 15:24:41 +01:00
Ellyse
5bbe055037
Updates to keywords_and_maps documentation ( #13935 )
2024-10-29 00:34:53 +01:00
José Valim
d133c704ac
Improvements to documentation chapter
2024-10-28 22:46:54 +01:00
newton
139f96c84e
Fix typo on new updated docs ( #13934 )
2024-10-28 22:29:23 +01:00
José Valim
c5cae45963
More updates to keywords and maps
2024-10-28 17:25:48 +01:00
José Valim
31e5f5ba1e
Simplifying keywords and guards
2024-10-28 17:21:45 +01:00
José Valim
bd254aa815
Simplify IO and file system chapter
2024-10-28 17:02:44 +01:00
José Valim
6740246636
Simplify streams examples
2024-10-28 16:50:03 +01:00
José Valim
db0e336eae
Improvements to recursion guide
2024-10-28 16:38:52 +01:00
José Valim
5f5961284e
Improvements to modules and functions guides
2024-10-28 16:31:32 +01:00
José Valim
5d6648b10a
Improve introduction to capture syntax shorthand
2024-10-28 16:05:04 +01:00
José Valim
7f64c51fa3
Improvements to cond introduction
2024-10-28 14:54:35 +01:00
Ahmed Kamal
bd899cc399
Reword some docs in the getting started guide ( #13888 )
2024-10-10 20:40:04 +02:00
Jean Klingler
2551fbd1a7
Move fun/arity explanation later in getting started ( #13890 )
2024-10-08 21:24:16 +09:00
Jean Klingler
39d1ecb499
Various small improvements in guides and docs ( #13887 )
2024-10-08 18:05:38 +09:00
Jean Klingler
fb31253a8f
Consistently use links without arities in getting started first pages ( #13885 )
2024-10-08 07:02:55 +09:00
Ahmed Kamal
290ad65ddf
docs: add arity to macro reference of def/2 and defmodule/2 ( #13882 )
2024-10-07 11:57:38 +02:00
Jean Klingler
49979d241b
Fix signature of trunc/1 in guide ( #13883 )
2024-10-07 15:58:41 +09:00
Ahmed Kamal
6c5502b589
Fix a typo in the docs ( #13879 )
2024-10-05 16:53:10 +02:00
Jean Klingler
13cab5f801
Remove mentions to unless/2 in guides ( #13852 )
2024-09-22 23:05:23 +09:00
Łukasz Jan Niemier
05d9735121
Docs: add link to capture syntax ( #13828 )
...
This should provide a link for a reader to investigate more about that
new syntax shown in the example.
2024-09-15 20:42:53 +02:00
Rudolf Manusadzhian
ad97f93108
Add a rule of thumb ( #13813 )
...
A rule of thumb when to prefer using `and`, `or` and `not` over `&&`, `||` and `!`
2024-09-06 21:58:19 +02:00
sarayourfriend
00f26629da
Fix a few more minor typos ( #13801 )
2024-08-31 20:18:46 +02:00
sarayourfriend
31f3a74a2d
Fix missing sentence subject ( #13800 )
...
Thanks for the excellent docs, I am having a great time learning Elixir. Just noticed a small typo 🙂
Cheers.
2024-08-31 12:01:55 +09:00
erikosmond
f2f4f3a621
Add doc to explain return value with after clauses ( #13783 )
2024-08-18 23:49:09 +02:00
Steven C. Buttgereit
19057692cf
Clarify map key ordering functionality in docs ( #13764 )
2024-08-09 15:07:19 +02:00
José Valim
1e0559e9ed
Clarify charlists intro, closes #13663
2024-06-14 17:34:16 +02:00
José Valim
c911466bbb
Provide references on structs for more information, closes #13664
2024-06-14 17:31:22 +02:00
José Valim
54b3736eac
Remove --werl support
2024-05-24 12:46:21 +02:00
Andrew Zipperer
4b5ed57c2c
Improve phrasing on keywords-and-maps.md ( #13586 )
2024-05-22 13:25:46 +02:00
Tobias Pfeiffer
fb3db59f7c
Add use to the title of guide that introduces it ( #13559 )
2024-05-20 16:26:55 +02:00
José Valim
93a1dba83a
Fix linting, deepen the pros
2024-05-18 00:02:50 +02:00
José Valim
004308fb39
Provide guidelines around control flow
2024-05-17 20:07:59 +02:00