Commit Graph
24 Commits
Author SHA1 Message Date
László Bácsi 205204d04b Annotate @doc metadata when something is a guard (#7893) 2018-07-15 09:37:56 +02:00
Aleksei Magusev e9dfa50c74 Format all the examples in the docs (#7318) 2018-02-06 07:27:13 +01:00
Bruno Volcov ac2417f79d Run the code formatter on Bitwise (#6805) 2017-10-10 14:58:19 +02:00
Eksperimental 690c2c40c9 Standardize of use verbs in bulleted lists (#5402)
* Use imperative verbs in bulleted lists

* Use "does not" instead of "do not" in bulleted lists
2016-11-03 20:57:01 +01:00
José Valim bc899aeea1 Update bitwise.ex 2016-03-31 12:18:48 +02:00
Michał Łępicki e5090416ff Add newline to create paragraph to fix markdown formatting of the code
example
2016-01-04 14:30:51 +01:00
eksperimental 1ca942b29a Improve Summaries
It splits the long summaries
and other fixes
2015-09-26 13:25:53 +07:00
Dan Rees-Jones e0fa5ac3cc fix a typo in bitwise documentation 2015-08-20 11:41:03 +01:00
eksperimental bdf299d6c9 Bitwise module: remove docs in __using__ and move it to @moduledoc 2015-07-19 02:04:49 +07:00
James Fish 2ead47ed13 Add example of Bitwise in guards 2015-06-20 03:34:55 +01:00
Rich Morin c71f9f6bfa Hack The Docs contribution
Clarify and expand textual descriptions; add examples.
2015-02-12 18:07:32 -08:00
Lars Storjord 231cbf9480 Use same verb tense across Elixir documentation
The norm is to use passive present tense ("Returns bacon") and not
imperative ("Return bacon").
2014-12-10 16:05:20 +01:00
Alexei Sholik e0f5dd506a Apply uniform capitalization and punctuation rules to all lists
* Never use capital letters after `-`. Sentences start right after
    the bullet and continue to the first period.

  * When list elements are one or two sentences, use non-capitalized
    format without terminators.

    The two sentences are converted into one, separated by a semicolon.
    This mainly applies to the cases with short sentences or when only
    one of many list elements needs to have two sentences.

    Example:

        * `:opt_a` - basic description, no terminator
        * `:opt_b` - also short description; this used to be second
          sentence

  * When at least one list element needs to have real sentences, 
    the whole list is formatted like that, with a period at the end
    of each element:

        * `:opt_a` - this is still short.

        * `:opt_b` or `:opt_c` - but this is longer. May have multiple 
          sentences.

          Or even paragraphs.
2014-06-17 16:25:16 +03:00
Alexei Sholik 915ba1bb29 Reformat unordered lists in all docstrings
List items are marked with a star (*). Bullets marking list elements
must have a 2-space indent. The continuation lines should be indented
by 2 more spaces.

The second and subsequent paragraphs need to be indented 4 spaces
from the beginning of the line to be included in the list item.

The code fragments have to be indented 8 spaces from the beginning
of the line (or 4 spaces from the beginning of the preceding paragraph).

Sublists are marked with a hyphen (-). They follow the rules above
with the difference that their initial indent will be greater
(8 spaces from the beginning of the line).
2014-06-17 02:01:27 +03:00
Augie De Blieck Jr. d539d606de Minor grammar tweak
Subject/verb agreement at the top
2014-04-17 15:24:39 -04:00
Igor Kapkov 97e70e6de1 change some doc examples to iex style 2014-04-12 08:41:22 +02:00
José Valim e553b6780b Convert bitwise 2013-11-22 14:41:50 +01:00
José Valim ebe522ec50 Tighten up the grammar rules regarding parentheses omission
Prior to this commit, Elixir allowed too many ambiguous calls
by ommitting the parentheses:

    do_something 1, is_list [], 3
    [1, is_atom :foo, 3]

Both cases above would lead to a compilation error, as an attempt
to call is_list/2 and is_atom/2 would happen. Those examples will
now raise a syntax error, pointing to the ambiguous location.

We have disallowed such examples throughout the language with
the exception of one argument calls:

    assert is_list []

Examples as above are extremely frequent and were kept as is.
2013-07-04 18:48:55 +02:00
Alexei Sholik 2fbc8682ca Review doctests in stdlib to use extended doctests 2013-05-28 18:47:47 +03:00
Yurii Rashkovskii 26599e7812 Improve elixir application doctest coverage 2013-04-11 08:25:17 -07:00
José Valim 3ad0abfc67 Better error messages when invalid options are given to import, alias or require 2012-08-02 10:28:15 +02:00
José Valim c611b397c0 There is no need to define macros using the atomic function name 2012-07-29 15:24:38 +02:00
José Valim 062813c8f3 Add bitwise operators 2012-07-06 11:21:22 +02:00
José Valim d5031b6347 Move all code to erlang style apps 2012-07-05 20:20:16 +02:00