Compare commits

...
5 Commits
Author SHA1 Message Date
José Valim e0220bd267 Revert "Add branch docs publishing"
This reverts commit 6f5cc529d5.

Latest ExDoc no longer works with this version.
2023-05-30 11:49:19 +02:00
José Valim 6f5cc529d5 Add branch docs publishing 2023-05-30 11:43:21 +02:00
Alberto Sartori 3d80256852 Fix invalid example for using erlang logger handler (#10432) 2020-10-16 12:54:08 +02:00
tarreeandSamuel Smith 8731ef03d9 Adjust @type body for Registry to match erlang ets match_spec Result (#10017)
Co-authored-by: Samuel Smith <samuel.smith@se.com>
2020-07-14 12:33:39 +02:00
José Valim f8a2d05b57 Clarify to_unix docs 2020-07-14 12:33:25 +02:00
3 changed files with 8 additions and 3 deletions
+4
View File
@@ -582,6 +582,10 @@ defmodule DateTime do
It will return the integer with the given unit,
according to `System.convert_time_unit/3`.
If you want to get the current time in Unix seconds,
do not do `DateTime.utc_now() |> DateTime.to_unix()`.
Simply call `System.os_time(:second)` instead.
## Examples
iex> 1_464_096_368 |> DateTime.from_unix!() |> DateTime.to_unix()
+1 -1
View File
@@ -204,7 +204,7 @@ defmodule Registry do
@type guards :: [guard]
@typedoc "A pattern used to representing the output format part of a match spec"
@type body :: [atom | tuple]
@type body :: [term]
@typedoc "A full match spec used when selecting objects in the registry"
@type spec :: [{match_pattern, guards, body}]
+3 -2
View File
@@ -467,8 +467,9 @@ defmodule Logger do
Erlang/OTP handlers must be listed under your own application:
config :my_app, :logger,
[:handler, :name_of_the_handler, ACustomHandler, configuration = %{}]
config :my_app, :logger, [
{:handler, :name_of_the_handler, ACustomHandler, configuration = %{}}
]
And then explicitly attached in your `c:Application.start/2` callback: