Commit Graph
5676 Commits
Author SHA1 Message Date
Waldemar Rachwał e3d2dacff0 Two fixes in record/1 (#5412)
* Document use of `record/1` with atom argument.

* In `record/1` used with record argument, raise ArgumentError on record size mismatch.
2016-11-08 15:27:46 +01:00
Michał Muskała 539b59fe2b Fix consistency in Calendar (#5430)
All /0 types don't use parens and all atoms, such as :lt, are wrapped
properly in backtics
2016-11-08 15:26:50 +01:00
José Valim 35f492b746 Allow "super" types in Calendar functions 2016-11-08 11:52:03 +01:00
Michał Muskała aebced19ec Simplify Kernel.match?/2 (#5429)
There's no need for a special handling of the underscore as the pattern,
the case expression is able of optimizing such cases too.

Additionally the right was never evaluated with underscore as the
pattern, which could lead to subtle bugs.

Currently match?(_, foo) will emit a pattern warning since both branches
of the case are exactly the same. This means such expressions had to be
removed from the test suite. They were replaced with the equivalent:

    fn _ -> true end
2016-11-08 01:07:09 +01:00
José Valim 08fd269843 Add a warning about Code.eval_quoted and macros 2016-11-07 10:29:21 +01:00
namjae 674c3d422e Fix typo in tokenizer (#5428) 2016-11-07 10:25:35 +01:00
Eksperimental 517d8f59d7 Choose more descriptive name for Kernel.defstruct/1 result var (#5423) 2016-11-07 08:52:20 +01:00
Eksperimental e5425fcd19 Mention how to use multiple type variables in Typespecs (#5422) 2016-11-07 08:50:20 +01:00
Eksperimental 9ad2cdc084 Small improvements to Kernel module docs (#5419) 2016-11-07 00:07:46 +01:00
José Valim cbbccd8d9f Also inline Node.list/0/1 2016-11-06 22:19:26 +01:00
Michał Muskała 0aa8f16077 Make tokenizer recognize VC merge conflict marker (#5416)
The "<<<<<<<" is used by all major VC systems including git,
subversion and mercurial.
2016-11-06 17:55:59 +01:00
Michał Muskała 59b36695ec Mention true, false and nil literals in typespecs (#5418) 2016-11-06 15:24:38 +01:00
José Valim ee09043ddb Add notes 2016-11-05 11:09:25 +01:00
Eksperimental dbe7f957a6 Remove code for Erlang version which is no longer supported (#5417) 2016-11-05 01:08:42 +01:00
Aleksei Magusev 6ae279e1a9 Use lower-case letters for non-system messages 2016-11-04 23:00:38 +01:00
Eksperimental f1cc31be3c Remove use of underscore before ordinal numbers in functions and variables (#5414) 2016-11-04 19:44:40 +01:00
Eksperimental 039e941d0c Fix Record.defrecord/3 example (#5408)
Module must be imported, otherwise the `user` macros won't be available.
2016-11-04 15:07:09 +01:00
LJZN 009a291e31 Fix the docs of Supervisor.start_link/2 (#5411) 2016-11-04 10:47:24 +01:00
Erol Fornoles 0ee02e95df Fix a typo in the docs for Registry (#5409) 2016-11-04 10:15:56 +01:00
Andrea Leopardi bbf0925cb9 Improve the docs for File.open/2 and File.open!/2 (#5407)
I mentioned that the second argument can be a function and renamed
variables to make that clearer. I also added a spec for when the second
argument is a function to File.open!/2.
2016-11-03 22:52:11 +01:00
Eksperimental f7fa41cbde Complete specs and guards for Kernel module and some submodules (#5391) 2016-11-03 22:09:29 +01:00
Eksperimental ce1f679431 Improve documentation of File.open* functions (#5398) 2016-11-03 21:15:37 +01:00
Eksperimental 690c2c40c9 Standardize of use verbs in bulleted lists (#5402)
* Use imperative verbs in bulleted lists

* Use "does not" instead of "do not" in bulleted lists
2016-11-03 20:57:01 +01:00
José Valim 34cef26302 Improve docs and specs for Calendar.ISO 2016-11-03 15:39:28 +01:00
Joao Bernardo ecd3df624c Implements Date.day_of_week/1 (#5404) 2016-11-03 15:32:59 +01:00
Gustavo Saiani b39f05aaea Fix typo in Kernel doc (#5406) 2016-11-03 15:04:58 +01:00
Eric Lathrop 9665521e26 Fix typo in Registry docs (#5405) 2016-11-03 14:54:37 +01:00
José Valim 160db7c20a Only deliver tasks that have exited 2016-11-03 13:52:54 +01:00
José Valim 40fe02acc0 Serialize lookups to avoid race in tests 2016-11-03 13:45:33 +01:00
Eksperimental 9f451c6cf4 Reorder code in Module's @callback example (#5400) 2016-11-03 13:29:55 +01:00
José Valim 601e0445ba Add Date.leap_year?/1 2016-11-03 13:24:30 +01:00
Michał Muskała e24b7c6659 Use Macro.to_string/1 when printing bad struct keys (#5403) 2016-11-03 12:25:18 +01:00
Aris Pikeas 4b22476ae6 Fix return value for GenServer.handle_info doc (#5401) 2016-11-03 11:14:00 +01:00
Andrea Leopardi 19e684a0ad Fix a couple of typos in the docs for Registry
[ci skip]
2016-11-02 21:28:21 +01:00
Eksperimental 209f70daad Improve guard in Enum.sort_by/3 (#5399) 2016-11-02 20:57:09 +01:00
José Valim 2fcc121c97 Improve docs for to_argv 2016-11-02 11:50:13 +01:00
Muaaz Saleem 40ff544ba7 Fixing :count support in OptionParser.to_argv (#5394) 2016-11-02 11:46:29 +01:00
José Valim 8e7847d47f Mention the Registry in GenServer docs 2016-11-02 10:17:29 +01:00
José Valim 35a793dfe6 Add Registry 2016-11-02 10:11:51 +01:00
José Valim 4e4e9932a3 Include the callback for unexpected message 2016-11-01 17:22:28 +01:00
José Valim 1a2f278400 Introduce Task.async_stream/3 and Task.async_stream/5 (#5367) 2016-10-31 22:23:41 +01:00
Sonny Scroggin e72e5624e5 Correct docs for Node.connect/1 (#5390) 2016-10-31 20:54:54 +01:00
Andrea Leopardi 6c2f627bd4 Add the MapSet.t/1 type and use it where possible (#5365) 2016-10-30 17:43:37 +01:00
Eksperimental b3c2da566b Add backticks in Kernel.SpecialForms.<<>>/2 docs (#5372) 2016-10-30 15:13:29 +01:00
Xavier Noria bf84d99c41 Complements the docs of Version.compare/2 (#5387) 2016-10-29 23:12:35 +02:00
eksperimental 47645139a0 Improve docs
Spelling corrections and formating and argument renaming
2016-10-29 20:59:58 +02:00
Eksperimental 17fa3454b0 Spell "builtin" as "built-in" (#5376) 2016-10-29 16:19:24 +02:00
Eksperimental f27e67157c Fixes to the documentation (#5382) 2016-10-28 23:50:14 +02:00
José Valim eb30e709e5 Make sure Access.key/2 consistenly accept only maps/structs 2016-10-28 21:38:10 +02:00
José Valim 5036439e95 Ensure we check for microseconds in Time.compare 2016-10-28 21:15:31 +02:00