From a86607e13b42106926b2eabcb8ecbcf0a5f5ffda Mon Sep 17 00:00:00 2001 From: eksperimental Date: Fri, 14 Aug 2015 02:32:38 +0700 Subject: [PATCH] Fix identention inside lists The following commands were used to find the buggy strings: `ag "[\r\n]\ {4}\[*-]([^\r\n]+[\r\n])+\ {7,}"` `ag "[\r\n]\ {4}[-*]([^\r\n]+[\r\n])(\ {4,}[^\r\n]+[\r\n])+\ {7,}"` --- lib/elixir/lib/file.ex | 16 ++++++++-------- lib/elixir/lib/float.ex | 2 +- lib/elixir/lib/gen_server.ex | 2 +- lib/elixir/lib/kernel.ex | 6 +++--- lib/elixir/lib/option_parser.ex | 4 ++-- lib/elixir/lib/regex.ex | 2 +- lib/mix/lib/mix/task.ex | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/elixir/lib/file.ex b/lib/elixir/lib/file.ex index 4862e2ea37..702721a82a 100644 --- a/lib/elixir/lib/file.ex +++ b/lib/elixir/lib/file.ex @@ -132,12 +132,12 @@ defmodule File do Typical error reasons are: * `:eacces` - missing search or write permissions for the parent - directories of `path` + directories of `path` * `:eexist` - there is already a file or directory named `path` * `:enoent` - a component of `path` does not exist * `:enospc` - there is a no space left on the device * `:enotdir` - a component of `path` is not a directory; - on some platforms, `:enoent` is returned instead + on some platforms, `:enoent` is returned instead """ @spec mkdir(Path.t) :: :ok | {:error, posix} def mkdir(path) do @@ -164,7 +164,7 @@ defmodule File do Typical error reasons are: * `:eacces` - missing search or write permissions for the parent - directories of `path` + directories of `path` * `:enospc` - there is a no space left on the device * `:enotdir` - a component of `path` is not a directory """ @@ -218,10 +218,10 @@ defmodule File do * `:enoent` - the file does not exist * `:eacces` - missing permission for reading the file, - or for searching one of the parent directories + or for searching one of the parent directories * `:eisdir` - the named file is a directory * `:enotdir` - a component of the file name is not a directory; - on some platforms, `:enoent` is returned instead + on some platforms, `:enoent` is returned instead * `:enomem` - there is not enough memory for the contents of the file You can use `:file.format_error/1` to get a descriptive string of the error. @@ -656,10 +656,10 @@ defmodule File do * `:enoent` - a component of the file name does not exist * `:enotdir` - a component of the file name is not a directory; - on some platforms, enoent is returned instead + on some platforms, enoent is returned instead * `:enospc` - there is a no space left on the device * `:eacces` - missing permission for writing the file or searching one of - the parent directories + the parent directories * `:eisdir` - the named file is a directory Check `File.open/2` for other available options. @@ -695,7 +695,7 @@ defmodule File do * `:eacces` - missing permission for the file or one of its parents * `:eperm` - the file is a directory and user is not super-user * `:enotdir` - a component of the file name is not a directory; - on some platforms, enoent is returned instead + on some platforms, enoent is returned instead * `:einval` - filename had an improper type, such as tuple ## Examples diff --git a/lib/elixir/lib/float.ex b/lib/elixir/lib/float.ex index 91bd946202..ca6f9ba201 100644 --- a/lib/elixir/lib/float.ex +++ b/lib/elixir/lib/float.ex @@ -184,7 +184,7 @@ defmodule Float do * `:decimals` — number of decimal points to show * `:scientific` — number of decimal points to show, in scientific format * `:compact` — when `true`, use the most compact representation (ignored - with the `scientific` option) + with the `scientific` option) ## Examples diff --git a/lib/elixir/lib/gen_server.ex b/lib/elixir/lib/gen_server.ex index 5203f19f07..11cda64b27 100644 --- a/lib/elixir/lib/gen_server.ex +++ b/lib/elixir/lib/gen_server.ex @@ -74,7 +74,7 @@ defmodule GenServer do - `{:stop, reason}` * `handle_call(msg, {from, ref}, state)` - invoked to handle call (sync) - messages. + messages. It must return: diff --git a/lib/elixir/lib/kernel.ex b/lib/elixir/lib/kernel.ex index be3aadd2c9..13ffef143d 100644 --- a/lib/elixir/lib/kernel.ex +++ b/lib/elixir/lib/kernel.ex @@ -3188,9 +3188,9 @@ defmodule Kernel do two functions to be implemented: * `exception/1` - receives the arguments given to `raise/2` - and returns the exception struct. The default implementation - accepts either a set of keyword arguments that is merged into - the struct or a string to be used as the exception's message. + and returns the exception struct. The default implementation + accepts either a set of keyword arguments that is merged into + the struct or a string to be used as the exception's message. * `message/1` - receives the exception struct and must return its message. Most commonly exceptions have a message field which diff --git a/lib/elixir/lib/option_parser.ex b/lib/elixir/lib/option_parser.ex index 7e1547220f..4bf1eafec2 100644 --- a/lib/elixir/lib/option_parser.ex +++ b/lib/elixir/lib/option_parser.ex @@ -53,8 +53,8 @@ defmodule OptionParser do For each switch, the following types are supported: * `:boolean` - marks the given switch as a boolean. Boolean switches - never consume the following value unless it is `true` or - `false`. + never consume the following value unless it is `true` or + `false`. * `:integer` - parses the switch as an integer. * `:float` - parses the switch as a float. * `:string` - returns the switch as a string. diff --git a/lib/elixir/lib/regex.ex b/lib/elixir/lib/regex.ex index bfc7254b9b..6361e5bd59 100644 --- a/lib/elixir/lib/regex.ex +++ b/lib/elixir/lib/regex.ex @@ -184,7 +184,7 @@ defmodule Regex do * `:return` - set to `:index` to return indexes. Defaults to `:binary`. * `:capture` - what to capture in the result. Check the moduledoc for `Regex` - to see the possible capture values. + to see the possible capture values. ## Examples diff --git a/lib/mix/lib/mix/task.ex b/lib/mix/lib/mix/task.ex index c6e09a7a0d..f5939dae94 100644 --- a/lib/mix/lib/mix/task.ex +++ b/lib/mix/lib/mix/task.ex @@ -26,7 +26,7 @@ defmodule Mix.Task do configure them in Mix: * `@shortdoc` - makes the task public with a short description that appears - on `mix help` + on `mix help` * `@recursive` - run the task recursively in umbrella projects """