diff options
author | Benjamin Milde <benni@kobrakai.de> | 2021-12-03 18:34:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 18:34:54 +0100 |
commit | 0db4f426c7deca2cf5db8206dfc80b472e90e465 (patch) | |
tree | 3029105457222045167526dc2d1387b81275e37e | |
parent | e48238950b29026b7e7afb7a840a203095109b21 (diff) | |
download | elixir-0db4f426c7deca2cf5db8206dfc80b472e90e465.tar.gz |
Update microsecond typespec (#11436)
Show which part of the tuple is the value and which the precision
-rw-r--r-- | lib/elixir/lib/calendar.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/calendar.ex b/lib/elixir/lib/calendar.ex index 801f9717f..7251f6f98 100644 --- a/lib/elixir/lib/calendar.ex +++ b/lib/elixir/lib/calendar.ex @@ -57,7 +57,7 @@ defmodule Calendar do representing the microseconds to external format. If the precision is 0, it means microseconds must be skipped. """ - @type microsecond :: {non_neg_integer, non_neg_integer} + @type microsecond :: {value :: non_neg_integer, precision :: non_neg_integer} @typedoc "A calendar implementation" @type calendar :: module |