Commit Graph
5709 Commits
Author SHA1 Message Date
Guilherme 'nirev' Nogueira 532984d012 Add doc example for Module.eval_quoted with __ENV__ as first argument (#5455) 2016-11-16 18:21:56 +01:00
Gustavo Saiani 2a58c2040e Remove duplicated assertion and improve formatting in KernelTest (#5454) 2016-11-16 16:57:14 +01:00
Gustavo Saiani 9ad8441da2 Remove double space from KernelTest (#5451) 2016-11-16 00:32:18 +01:00
Andrea Leopardi c08bf1ae5a Fix the spec and guards for Inspect.Algebra.surround_many/6 (#5450)
The old spec said that the "left", "right", and "separator" arguments
had to be binaries but they can instead be documents.
2016-11-15 17:48:34 +01:00
Andrea Leopardi 3ce204e38f Generally improve code readability in Inspect.Algebra (#5446) 2016-11-15 16:11:21 +01:00
José Valim a7e4ca7028 Document and refactor syntax colors 2016-11-15 15:00:46 +01:00
Louis Pilfold 0508a8eef0 Syntax highlighting of IEx results (#5355) 2016-11-15 12:11:13 +01:00
João Britto d8cd0a72b7 Fix typo on String.replace doc (#5449)
From `insert_replace` to `insert_replaced`.
2016-11-15 10:18:28 +01:00
José Valim 43ca23a0d0 Fixes to the Port docs 2016-11-14 23:29:14 +01:00
José Valim 6782f4fd75 Inline do in def sequence for KernelTest (#5448) 2016-11-14 22:55:22 +01:00
José Valim a9ee16295b Document the Port module 2016-11-14 22:20:56 +01:00
Gustavo Saiani d71a1d21e7 Inline do in def sequence for KernelTest 2016-11-14 17:41:02 -02:00
Louis Pilfold 70271dfca2 Document implicit function try (#5442) 2016-11-14 11:32:09 +01:00
Andrea Leopardi 9b9e976485 Polish docs and examples in Inspect.Algebra (#5445) 2016-11-14 11:18:24 +01:00
José Valim b7dccb1b38 Support match lookups in the registry 2016-11-11 18:22:34 +01:00
José Valim 5845d67b89 Remove liveness guarantees as races exist anyway 2016-11-11 17:10:19 +01:00
José Valim 51153e15b6 Use bitshifting instead of * power_of_2_to_52 2016-11-11 01:26:07 +01:00
José Valim 0e7001e862 Use bitshifting instead of log when scaling 2016-11-11 00:13:55 +01:00
José Valim 35b2e2ca5e Fix ratio for floats > 2 2016-11-10 23:48:45 +01:00
Eric Meadows-Jönsson 1648d055c2 Optimize exponent building in Float.round/3
Use a flooring function optimized for flooring to integers instead of
using the Float.floor/2 function that calls Float.round/3 again.
2016-11-10 22:19:35 +01:00
Gustavo Saiani 76dc93ee5b Fix typo in Kernel (#5434) 2016-11-09 22:57:21 +01:00
Aleksei Magusev f358ab3eb3 Suppress few warnings 2016-11-09 20:52:46 +01:00
Aleksei Magusev 01fa419f01 Minor improvements around OptionParser.to_argv/2 2016-11-09 20:43:02 +01:00
Aleksei Magusev c65e37533b Favor datetime over date_time 2016-11-09 20:42:56 +01:00
Aleksei Magusev a823f5f863 Correct doc for DateTime.to_iso8601/1 2016-11-09 20:34:58 +01:00
Aleksei Magusev 983130f11f Fix description of struct literal 2016-11-09 20:32:12 +01:00
Aleksei Magusev 7c39353649 Tidy up Kernel.TypespecTest 2016-11-09 20:27:05 +01:00
Gustavo Saiani 1827efbbdb Rename vars in Kernel (#5433) 2016-11-09 19:34:54 +01:00
José Valim ed90c0f24d s/expression/value 2016-11-09 19:33:22 +01:00
Eksperimental 69e99e0032 Document when some functions raise in Kernel module (#5424) 2016-11-09 19:32:46 +01:00
Gustavo Saiani 110263c0a8 Improve grammar in a comment in Kernel (#5432) 2016-11-09 14:07:01 +01:00
Eksperimental 03c7618ea5 Improve docs, specs, and guards for get_and_update functions (#5420)
Improves docs, specs, and guards for Kernel.get_and_update_in/3 and Access.get_and_update/3.
2016-11-08 20:33:43 +01:00
Eksperimental cc89daaed6 Update defdelegate/2 docs to reflect deprecated features (#5425) 2016-11-08 19:14:19 +01:00
Waldemar Rachwał 8e02af2752 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 610e92eda4 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 5a44b36f80 Allow "super" types in Calendar functions 2016-11-08 11:52:03 +01:00
Michał Muskała 28ef5c9133 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 8161153090 Add a warning about Code.eval_quoted and macros 2016-11-07 10:29:21 +01:00
namjae 273f3ef3e7 Fix typo in tokenizer (#5428) 2016-11-07 10:25:35 +01:00
Eksperimental cd596976d8 Choose more descriptive name for Kernel.defstruct/1 result var (#5423) 2016-11-07 08:52:20 +01:00
Eksperimental 6664169ac8 Mention how to use multiple type variables in Typespecs (#5422) 2016-11-07 08:50:20 +01:00
Eksperimental 0d7b269a20 Small improvements to Kernel module docs (#5419) 2016-11-07 00:07:46 +01:00
José Valim ed6d279133 Also inline Node.list/0/1 2016-11-06 22:19:26 +01:00
Michał Muskała 252ff2e4a5 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 c4881564ef Mention true, false and nil literals in typespecs (#5418) 2016-11-06 15:24:38 +01:00
José Valim e6b1bb9f0d Add notes 2016-11-05 11:09:25 +01:00
Eksperimental 136048ffc7 Remove code for Erlang version which is no longer supported (#5417) 2016-11-05 01:08:42 +01:00
Aleksei Magusev 621df24513 Use lower-case letters for non-system messages 2016-11-04 23:00:38 +01:00
Eksperimental 0990fcc205 Remove use of underscore before ordinal numbers in functions and variables (#5414) 2016-11-04 19:44:40 +01:00
Eksperimental b06384e38f 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