Commit Graph
9357 Commits
Author SHA1 Message Date
Eksperimental 8bef4e8ac6 Document in Collectable docs the new range format (#10947) 2021-04-23 16:14:14 +02:00
Martin Manelli 0cc8ada64e Hard-deprecate System.get_pid/0 (#10946) 2021-04-23 07:57:48 +02:00
Eksperimental de7b86914d Fix minor detail Enumerable doc (#10942)
Convert the code block into an inline, so it is part of the paragraph.
Before the paragraph was split by the codeblock.
2021-04-22 15:32:01 +02:00
Eksperimental 1a5947778b Add missing backtick in Code.cursor_context/2 (#10943) 2021-04-22 15:31:23 +02:00
Wojtek Mach 26aa43085e Update error message on invalid external_resource value (#10940) 2021-04-22 12:41:49 +02:00
Eksperimental 9b1aea3912 Add catch-all clause to Protocol.callback_ast_to_fa/1 (#10936) 2021-04-21 17:32:03 +02:00
Eksperimental fb9435d946 Make functions attribute in protocols private (#10935) 2021-04-21 08:10:12 +02:00
Eric Meadows-Jönsson d931b1ed0b Check function calls in guards (#10820) 2021-04-20 18:37:26 +02:00
thepeoplesbourgeois b11a119f52 Tail-call recursion guarded_pow (#10932) 2021-04-20 17:33:43 +02:00
Eksperimental 50fa8a3fca Add line number in @callback and @macrocallback warning when inside Protocol (#10929)
Before we were just showing the line number for the defprotocol call:
warning: cannot define @callback default/1 inside protocol, use def/1 to outline your protocol definition
  lib/buildable.ex:1: Buildable (module)

Now:
warning: cannot define @callback default/1 inside protocol, use def/1 to outline your protocol definition
  lib/buildable.ex:82: Buildable (module)

For @optional_callbacks it still displays the defprotocol line number.
2021-04-20 17:30:39 +02:00
Wojtek Mach 71d29735a1 Update Code.cursor_context/2 docs (#10931) 2021-04-20 12:36:34 +02:00
Wojtek Mach 5bcc808a6d Add Module.reserved_attributes/0 (#10926) 2021-04-20 12:24:42 +02:00
José Valim f248a52183 Code.cursor_context/2 (#10915) 2021-04-20 11:45:00 +02:00
Eksperimental 912e301203 Fix table in Operators page (#10930)
It was broken due to the changes in d9a23d0d38
2021-04-20 09:08:56 +02:00
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