Commit Graph
5606 Commits
Author SHA1 Message Date
José Valim c8a2a9f4e2 Increase performance of Inspect.BitString.escape/2 2016-10-24 14:07:10 +02:00
Wojtek Mach bbd8622218 Use sigils in Date/DateTime/NaiveDateTime.compare/2 doctests (#5352) 2016-10-24 10:49:55 +02:00
José Valim f5f32b6693 No need to check for equality given the first two clauses 2016-10-24 08:58:54 +02:00
Otto Lin 989553d7bf Add Date/Time/NaiveDateTime.compare/2 (#5349) 2016-10-24 08:55:44 +02:00
José Valim f0b84922d9 Ensure we consistently wrap variables in quotes 2016-10-22 22:25:18 +02:00
José Valim 3b71d85179 Emphasis on must await 2016-10-22 22:25:18 +02:00
Aleksei Magusev ecf9713070 Refactor loading logic for macros in import/2 2016-10-22 21:56:18 +02:00
Aleksei Magusev 582e8be0c1 Restructure doc samples in DocsTest 2016-10-22 21:12:09 +02:00
Aleksei Magusev 50a4831a82 Test all available doc kinds in the test for Code.get_docs/2 2016-10-22 20:53:37 +02:00
Aleksei Magusev c3ae2a4efa Fully validate the shape of the options for import/2 2016-10-22 20:53:34 +02:00
Aleksei Magusev 1e0d26d139 Favor ==/2 operator over match in assertions 2016-10-22 20:50:19 +02:00
Aleksei Magusev 35a4ecbb69 Make actual testing of doc attributes instead of occasional matching 2016-10-22 20:50:19 +02:00
Aleksei Magusev e8b1f5a87f Remove unnecessary apply/3 calls 2016-10-22 20:50:18 +02:00
Aleksei Magusev 2b2afceeb4 Add comment why we do not check :except exports in import/2 2016-10-22 20:50:14 +02:00
Aleksei Magusev 4227fe05b7 Improve URI.encode/2 doc 2016-10-21 01:18:52 +02:00
Aleksei Magusev 290447cabe There is no :erlang.is_record/1 function 2016-10-21 00:58:39 +02:00
Marcus Osterberg 16f3a8d57b Add missing space in Kernel.defstruct/1 docs (#5345) 2016-10-20 22:45:38 +02:00
Eric Thomas 3c84c60e1a Polish some docs for the File module (#5335) 2016-10-18 09:38:39 +02:00
Eksperimental c2fd08e20d Improve specs and guards in Code module (#5332) 2016-10-17 21:17:17 -04:00
Eksperimental 4ce220d21f Improve specs and guards in GenEvent (#5331) 2016-10-17 21:12:22 -04:00
Eksperimental 41ea576d38 Page Typespecs: Sort alphabetically literals, basic and built-in types (#5333) 2016-10-17 16:30:35 +02:00
Eksperimental e769afbed9 Add/correct arities (part 3) (#5326)
Add missing arities to functions, callbacks and types.
For posterity, the command used to find out these errors:

    $ ag "\`[^ /]+\`\s+(fun|function|callback|type|typespec|helper)"
2016-10-17 06:32:14 -04:00
Tony Han a031f26188 Fix commends around module_nesting/2 in Kernel (#5330) 2016-10-17 10:59:14 +02:00
José Valim 3aef07aac7 Remove argument error example to avoid warnings 2016-10-16 09:42:27 -04:00
Eksperimental 16b3e889bc Kernel.++/2: comment on improper lists being returned (#5323) 2016-10-14 19:59:13 +02:00
Eksperimental f8f4731f5e Link to callbacks in the docs (#5316) 2016-10-14 11:46:46 +02:00
Eksperimental 2be5ffb60b Add/correct arity and link to callbacks and types throughout the docs (#5317) 2016-10-14 11:42:21 +02:00
Eksperimental 20e835020a File.rmdir!/1: give a less confusing error message when directory is not empty (#5299) 2016-10-14 11:39:55 +02:00
Eksperimental 90b8592125 Reword ISO 8601 and add link to standard (#5321)
Corrected the spelling of "ISO 8601" (a space must be used),
added a link to the Wikipedia article about the standard, and
changed "ISO 8601" to "ISO 8601:2004" where the year was
omitted.
2016-10-14 11:35:10 +02:00
Eksperimental 5a849cbb56 Reword and polish a few docs (#5322) 2016-10-14 10:47:45 +02:00
James Edward Gray II ef5a1c86fd Support add() and diff() for NaiveDateTime (#5298) 2016-10-13 12:40:45 +02:00
José Valim dcb1b4418b Remove incorrect NaiveDateTime.from_unix/to_unix 2016-10-13 12:40:18 +02:00
José Valim 344750c85e Remove incorrect NaiveDatetime.from_unix/to_unix 2016-10-13 12:38:46 +02:00
Eksperimental 029e92b5c7 Enforce rule of only guards should start with "is_" (#5300) 2016-10-13 10:05:38 +02:00
Eksperimental 8665932d56 Add backticks to Kernel module (#5315) 2016-10-13 09:51:09 +02:00
Paweł Obrok 7eb98194c9 Add any to Access.t (#5311) 2016-10-12 22:40:11 +02:00
Eksperimental 66b647a0c4 Correct arity of functions and types in docs (#5301)
Also change remote call example to Kernel."FUNCTION_NAME"
2016-10-12 22:23:06 +02:00
Eksperimental 1c67b9e421 Reword "latest moment possible" to "latest possible moment" (#5314) 2016-10-12 18:56:12 +02:00
Eksperimental ac2fcf31ca Add backticks to Stack server (#5313) 2016-10-12 18:41:55 +02:00
Eksperimental 470b2eebfb Use singular time units (#5303) 2016-10-12 00:55:16 +02:00
Eksperimental aa030d22cd Reword "pseudo-variables" with "compilation environment macros" (#5308)
As discussed in https://github.com/elixir-lang/elixir/pull/5301#pullrequestreview-3711427.
2016-10-12 00:49:47 +02:00
Aleksei Magusev 1e75af0046 Add test for unused var warning when defined inside case/2 (and similar)
819d81c28e commit has brought this warning and fixed #5024 issue.
2016-10-10 23:39:24 +02:00
José Valim 13272af726 Fix markdown formatting error 2016-10-09 17:57:23 +02:00
Aleksei Magusev a1e5ab1c4f Enhance Dialyzer test for and/2 and or/2 expansion 2016-10-09 16:49:15 +02:00
Aleksei Magusev 41789b186a Suppress unused variable warning in Kernel.FnTest 2016-10-09 12:40:32 +02:00
Aleksei Magusev 2969eca83f Simplify assertion formatting in Kernel.FnTest 2016-10-09 12:38:34 +02:00
Aleksei Magusev f56a013f4c Fix ===/2 operator precedence issue in Float 2016-10-09 11:29:14 +02:00
Aleksei Magusev 837a720037 Add TODO about generated/0 removal 2016-10-09 11:29:14 +02:00
Aleksei Magusev 0554391852 Merge pull request #5295 from lexmag/new-and
Compile or/2 and and/2 to case/2 when in non-guard context
2016-10-09 11:02:31 +02:00
Aleksei Magusev b846204eb5 Correct Task.yield/2 usage example 2016-10-09 02:06:43 +02:00