Commit Graph
12439 Commits
Author SHA1 Message Date
Bernhard M. Wiedemann ae67b56bff Make tests pass in 2020 (#8688)
Using only 2038 to keep 32-bit UNIX systems happy.
2019-01-24 14:50:15 +01:00
José Valim 7a1ae92b42 Improve docs for Access
A lot of confusion in the previous docs was caused by
trying to explain both bracket-based and dot-based
syntaxes in the same place. This made sense at the time
because those syntaxes were not described elsewhere.
But now we can link to other resources and focus the
docs specifically in the Access module.
2019-01-24 12:53:55 +01:00
Wojtek Mach 5820888bc0 Standardize on iodata variable name, as this is what docs use 2019-01-23 23:25:41 +01:00
Wojtek Mach 3c0794b62e Convert private is_iodata macro to a private guard 2019-01-23 23:25:41 +01:00
Tobiasz Małecki 1fc6652ed6 Fix specs for Mix.Project umbrella?/1 and apps_paths/1 (#8683) 2019-01-23 23:15:05 +01:00
José Valim f0e58a2e87 Remove confusing comment about dynamically generated cases 2019-01-23 13:35:57 +01:00
Devon Estes 4da4ccdb8c Add ability to filter by more than one line number (#8673) 2019-01-23 13:34:42 +01:00
Tobiasz Małecki 2afc16b623 EEx.SmartEngine moduledoc examples improvement (#8681) 2019-01-22 23:02:44 +01:00
Tobiasz Małecki 4d5f903cc3 EEx examples improvement (#8680) 2019-01-22 22:19:02 +01:00
Tobiasz Małecki f865289130 Logger documentation improvement (#8679) 2019-01-22 21:13:08 +01:00
Tobiasz Małecki e333434019 Agent moduledoc improvement (#8674) 2019-01-22 17:44:10 +01:00
Eksperimental 2d0a481557 Make documentation accurate in File.cp* functions (#8627) 2019-01-22 17:27:57 +01:00
José Valim 8594944c2e Add version to umbrella projects too
This will be useful when assembling releases.
2019-01-22 16:23:32 +01:00
Eksperimental 5bd907d126 Use hexadecimal notation in code points in tokenizer error msg (#8669) 2019-01-22 13:39:40 +01:00
Eksperimental 2b6b1d51e6 Improve documentation and info on charlists (#8645) 2019-01-22 09:01:09 +01:00
Eksperimental 3beaf09dfe Correct arity in List test (#8670) 2019-01-22 08:58:37 +01:00
Eksperimental b60c8b82be Correct verb tenses (#8667) 2019-01-22 08:56:38 +01:00
Eksperimental 2f943d84cd Name args in Range.disjoint?/2 (#8666) 2019-01-22 08:55:56 +01:00
Fernando Tapia Rico 4f9c6e6c01 Optimize generated code for catch-all else clauses (#8661)
Elixir's with is expanded into a series of nested cases. For
example, this code:

    with {:ok, a} <- fun_a(),
         {:ok, b} <- fun_b() do
      wa = fun_w(a)
      wb = fun_w(b)
    else
      error -> {:c, error}
    end

would be expanded to something similar to this:

    case fun_a() do
      {:ok, a} ->
        case fun_b() do
          {:ok, b} ->
            wa = fun_w(a)
            wb = fun_w(b)

          var1 ->
            case var1 do
              error -> {:c, error}
              var2 -> error({with_clause, var2})
            end
        end

      var1 ->
        case var1 do
          error -> {:c, error}
          var2 -> error({with_clause, var2})
        end
    end

The generated code can be optimized for else clauses that
only contain a single catch-all clause (a variable that would
bind everything). Applying this optimization, the code of the
example above would be:

    case fun_a() do
      {:ok, a} ->
        case fun_b() do
          {:ok, b} ->
            wa = fun_w(a)
            wb = fun_w(b)

          error ->
            {:c, error}
        end

      error ->
        {:c, error}
    end
2019-01-22 08:53:24 +01:00
Eksperimental e81f8c065c Simplify guards in List.ascii_printable?/2 (#8656) 2019-01-22 08:50:48 +01:00
Fernando Tapia Rico 13179d2958 Augment doctest errors with misplaced opaque types (#8653) 2019-01-22 08:48:10 +01:00
Tobiasz Małecki 054814fd3e Mix.Config.import_config/1 doc improvement (#8665) 2019-01-21 21:58:32 +01:00
Tobiasz Małecki 106f1497ec Format code sample in Mix.Project.in_project/4 doc (#8664) 2019-01-21 21:39:55 +01:00
Wojtek Mach 736a1ac906 Update Module.spec_to_callback to keep existing specs and copy docs (#8663) 2019-01-21 19:49:44 +01:00
Eksperimental f1eca78ca4 Improve docs in Module functions and raise errors (#8635) 2019-01-21 18:12:51 +01:00
Wojtek Mach 985bfe53b4 Hide functions accidentally made public (#8662) 2019-01-21 14:13:13 +01:00
Eksperimental 861cf504f0 Use "operating system" instead of OS (#8658) 2019-01-20 21:15:20 +01:00
Eksperimental 6fceb8caaa Add test to List.ascii_printable?/2 (#8655)
Add test that checks improper lists with limit
2019-01-20 19:23:09 +01:00
Eksperimental 5a217ee941 Fix indentation in doctests (#8654) 2019-01-20 19:17:01 +01:00
Fernando Tapia Rico 5cf587f9eb Remove unneeded IO capture in IEx tests (#8652) 2019-01-20 18:48:42 +01:00
José Valim 9d77f5d8f6 Move code and macros to after processes and applications 2019-01-20 14:53:09 +01:00
farmio 209e6cb5a6 Fix a typo in the Library Guidelines page (#8651)
[ci skip]
2019-01-20 14:45:38 +01:00
Tyler Witt a3a0e25cf7 Update Kernel rounding documentation (#8648)
Updates Kernel.round/1 to describe what happens on half.
2019-01-20 09:08:41 +01:00
Saúl Cabrera 8d48a4399f Fix typo in Task docs (#8650) 2019-01-20 09:08:21 +01:00
Ali Farhadi 69cd698535 Fix docs for DynamicSupervisor.start_child/2 (#8647)
[ci skip]
2019-01-19 12:25:18 +01:00
José Valim 0ce62a2add Rely on IO.warn whenever possible 2019-01-18 14:59:20 +01:00
Fernando Tapia Rico 7af2e48156 Minor grammar fix in ExUnit.CaptureIO (#8644)
[ci skip]
2019-01-17 19:33:45 +01:00
José Valim bf6022f225 Ensure receive and send are done in a single read line operation, closes #8640 2019-01-17 18:01:47 +01:00
José Valim 17e86fd7eb Improve capture_io signature and docs 2019-01-17 17:59:17 +01:00
Gustavo Saiani 2d9681cd6b Improve IEx.Introspection.h/1 error message (#8643) 2019-01-17 13:48:13 +01:00
José Valim b8c68e6df3 Clarify the need for stop_supervised/1 2019-01-17 13:44:36 +01:00
José Valim f5ff567ce5 Avoid dialyzer warnings on formatter, closes #8631 2019-01-17 10:52:37 +01:00
Roman Smirnov 4bdc4e4050 Fix parsing Markdown links for h function (fix #8629) (#8641) 2019-01-16 22:39:14 +01:00
Eksperimental 0da99435c3 Use ID and not id (#8639)
The command used to detect these entries:
ag -s "\b(?<![/:{_\[.])ids?(?![}:_\]])(?!\(\))(?!enti)(?!ea)(?!iom)(?!x)"  --elixir
2019-01-16 19:14:39 +01:00
Eksperimental 2142465fdc Add missing colon and backticks (#8638) 2019-01-16 16:04:52 +01:00
Eksperimental ac2ee78e91 Use PID instead of pid (#8628) 2019-01-16 15:39:39 +01:00
Eksperimental 57a15ec541 Add note to File.stat/2 and File.lstat/2 on optimization (#8632)
The note was taken from the :file.read_file_info/1 Erlang documentation.
2019-01-16 09:42:23 +01:00
Eksperimental d605600d3f Sort Module.__info__/1 options alphabetically (#8637) 2019-01-16 09:38:02 +01:00
Eksperimental 8dc218edc3 Mention Code.fetch_docs/1 and ExDoc in Module (#8634) 2019-01-16 09:31:28 +01:00
Eksperimental f451f9f63d Replace use of "item(s)" with "element(s)" in List module (#8633)
The usage of items and elements was mixed,
but Erlang refers to them as Elements,
and Enumerable also refer to them as elements,
so I took the liberty to standardize its usage.
2019-01-16 09:28:50 +01:00