Eksperimental
72abef4e2f
Fix case when callback spec uses when clause ( #10927 )
...
This was causing an error:
** (FunctionClauseError) no function clause matching in Protocol.callback_ast_to_fa/1
Introduced in PR: #10912 , commit: 485cc13946
2021-04-19 21:15:40 +02:00
José Valim
fd9c311352
Add note about IP parsing
2021-04-19 19:55:42 +02:00
Eksperimental
c1e622950c
Use proper Unicode reference ( #10924 )
2021-04-19 17:10:44 +02:00
TED
60d773d163
Fix minor spelling ( #10921 )
2021-04-19 08:18:54 +02:00
José Valim
5ddd5f37bd
Improve undefined function compilation errors
2021-04-18 08:58:20 +02:00
Eksperimental
485cc13946
Warn if @callback, @macrocallback and @optional_callbacks defined inside protocol ( #10912 )
...
Closes #10901
2021-04-17 22:20:42 +02:00
José Valim
843587723f
Do not crash on Path.absname(c:) ( #10919 )
2021-04-17 22:05:39 +02:00
TED
7eab0cb639
Minor fix GenServer Doc ( #10914 )
2021-04-17 14:12:19 +02:00
Nathan Long
4a0487a396
Clarify documentation on timeouts ( #10911 )
2021-04-17 08:50:49 +02:00
Dorgan
03621a9af5
Add documentation for qualified tuples AST ( #10913 )
2021-04-17 08:44:53 +02:00
Nick Janetakis
693505fb59
Improve docs for using Application.get_env/3 ( #10903 )
2021-04-14 15:31:34 +02:00
Dave Cottlehuber
3f4ee226df
Improve URI docs & tests for IPv6 literals ( #10896 ) ( #10902 )
...
The URI module is not quite in compliance with the canonical RFC3986,
when handling IPv6 literal hostnames. These should be stored with
`[]` included. This is handled correctly in the authority field, but
not in the hostname field.
We can't change this behaviour now, so add doc & test.
2021-04-14 11:53:16 +02:00
TED
b498c3790e
Improve Task docs ( #10899 )
2021-04-13 13:04:33 +02:00
Boris Kuznetsov
d7c6a27527
Path module will always return a binary() type ( #10898 )
...
If you give a binary to Path that is not utf-8 encoded, it will
preserve it as is.
2021-04-13 12:05:16 +02:00
José Valim
4bad6f2bf6
Make sure we traverse all files when looking for definitions
2021-04-12 13:15:07 +02:00
Jonatan Männchen
5650317a68
Improved wording in Struct Pattern Matching Docs ( #10894 )
2021-04-12 10:38:59 +02:00
Eksperimental
b4e270354b
Fix optional callback blame hint ( #10893 )
...
Previously it was wrongly hinting that the
behaviour Behaviour expected a private or undefined function to be present,
when the callback was optional.
2021-04-12 09:21:58 +02:00
sabiwara
06f155eb49
Fix regression in Enum.dedup/1 ( #10886 )
2021-04-09 13:18:05 +02:00
Jonatan Männchen
81f37bfdc3
Add Struct Pattern Matching Guide ( #10889 )
2021-04-09 13:17:36 +02:00
José Valim
eb34806cf3
Allow default inspect fun to be set globally ( #10859 )
2021-04-09 12:48:32 +02:00
José Valim
8e0f679348
Explicitly mention relative and absolute URIs, closes #10884
2021-04-08 08:17:05 +02:00
José Valim
464db07b31
Do not ignore unimplemented function headers from used modules
2021-04-07 18:52:38 +02:00
Thiago Santos
655d8da614
Add example to Task.async_stream documentation ( #10876 )
2021-04-07 13:17:54 +02:00
José Valim
3c446e91eb
Add examples on more complex with clauses
2021-04-06 22:49:08 +02:00
José Valim
a1dc220219
More with
2021-04-06 21:59:42 +02:00
José Valim
f6ed9fa2b8
Simplify rules and error messages
2021-04-06 16:52:34 +02:00
Eksperimental
b0c09c81b4
Improve error message with invalid call at several locations ( #10879 )
2021-04-05 17:06:06 +02:00
Eksperimental
2424fe8a00
Make message in error suggestion generic for ones or more suggestions ( #10878 )
2021-04-05 17:05:10 +02:00
José Valim
b41c8fd404
Update CHANGELOG and remove defexception from forbidden calls
2021-04-05 10:19:56 +02:00
Wojtek Mach
f91e8ddc84
Use docs canonical version in all built-in apps ( #10872 )
...
Before:
https://hexdocs.pm/elixir/1.12.0-rc.0/changelog.html contains links like:
- [`Mix.install/2`](https://hexdocs.pm/mix/Mix.html#install/2 )
which currently 404.
After:
https://hexdocs.pm/elixir/1.12.0-rc.0/changelog.html would contain:
- [`Mix.install/2`](https://hexdocs.pm/mix/1.12/Mix.html#install/2 )
See demo: http://wojtekmach.pl/docs/elixir/1.12/elixir/changelog.html
2021-04-04 08:35:30 +02:00
Eksperimental
03829be0c0
Standardize use of Erlang/OTP VERSION ( #10867 )
2021-04-03 17:11:57 +02:00
Enrico Rivarola
218c35a041
Sync unicode data to Unicode 13.0.0 ( #10866 )
2021-04-03 15:20:05 +02:00
José Valim
464b10b3c9
Clarifications to Calendar.ISO
2021-04-03 15:02:36 +02:00
José Valim
88d82f0597
Remove invalid escaping of sigils, closes #10864
2021-04-02 23:12:43 +02:00
José Valim
587c80eae6
Make get_in consistent with pop_in and abort on nils
2021-04-02 19:42:11 +02:00
Eksperimental
0beb4f42fe
Update Unicode upgrade instructions ( #10862 )
2021-04-01 22:11:23 +02:00
Eksperimental
37a09feaaa
Update Unicode to version 13.0.0 ( #10861 )
2021-04-01 20:35:52 +02:00
José Valim
e79d32a8aa
Use persistent term for tokenizer and bootstrap
2021-04-01 10:45:15 +02:00
Eksperimental
70d740daec
Format source code with new rules
2021-04-01 09:46:47 +02:00
Eksperimental
d22060f91f
Quote range operator atom
...
This commit has only the actual changes
Add tests for quoted range operator
2021-04-01 09:46:47 +02:00
Eksperimental
1d552f9e5f
Update Enum.{random, shuffle}/1 docs to OTP 22 ( #10848 )
2021-03-30 18:52:25 +02:00
Eksperimental
57cd15c3be
Correct and improve definition of decreasing and increasing ranges ( #10850 )
2021-03-30 18:50:44 +02:00
Eksperimental
50c043daf1
Fix grammar in Range docs ( #10851 )
...
- Use "with a step of X"
- Replace usage of "start" and "stop" with "first" and "last"
2021-03-30 18:49:04 +02:00
Eksperimental
9e9f95c30c
Replace deprecated random seed algorigthm in tests ( #10849 )
...
Use :exss exclusively since it is the default one in OTP 22+
2021-03-30 18:39:54 +02:00
Wojtek Mach
c65976deb3
Update compatibility-and-deprecations.md ( #10846 )
2021-03-30 15:02:43 +02:00
José Valim
124f5627b8
More range copyedit
2021-03-30 14:44:40 +02:00
Eksperimental
b544632594
Copyedit Range specs and docs ( #10845 )
2021-03-30 14:43:13 +02:00
Eksperimental
4036afafc5
Simplify specs in Range by introducing t:limit/0 ( #10844 )
2021-03-30 14:26:31 +02:00
José Valim
c3cb40d2c9
Use types were appropriate in Range
2021-03-30 14:14:00 +02:00
Kelvin Stinghen
9c39d46e54
Keeping underscore between digits on Macro.camelize/1 ( #10843 )
...
Closes #10839
2021-03-30 13:42:09 +02:00