Skip to content

Commit 2e96256

Browse files
Fix typos and improve grammar on some getting started guides
1 parent ea7851c commit 2e96256

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

getting-started/try-catch-and-rescue.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ In Elixir, we avoid using `try/rescue` because **we don't use errors for control
9595

9696
In Elixir, a value can be thrown and later be caught. `throw` and `catch` are reserved for situations where it is not possible to retrieve a value unless by using `throw` and `catch`.
9797

98-
Those situations are quite uncommon in practice except when interfacing with libraries that does not provide a proper API. For example, let's imagine the `Enum` module did not provide any API for finding a value and that we needed to find the first multiple of 13 in a list of numbers:
98+
Those situations are quite uncommon in practice except when interfacing with libraries that do not provide a proper API. For example, let's imagine the `Enum` module did not provide any API for finding a value and that we needed to find the first multiple of 13 in a list of numbers:
9999

100100
```iex
101101
iex> try do

getting-started/typespecs-and-behaviours.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ Typespecs are not only useful to developers and as additional documentation. The
9090

9191
## Behaviours
9292

93-
Many modules share the same public API. Take a look at [Plug](https://github.com/elixir-lang/plug), which, as it description states, is a **specification** for composable modules in web applications. Each *plug* is a module which **has to** implement at least two public functions: `init/1` and `call/2`.
93+
Many modules share the same public API. Take a look at [Plug](https://github.com/elixir-lang/plug), which, as its description states, is a **specification** for composable modules in web applications. Each *plug* is a module which **has to** implement at least two public functions: `init/1` and `call/2`.
9494

95-
Behaviors provide a way to:
95+
Behaviours provide a way to:
9696

9797
* define a set of functions that have to be implemented by a module;
9898
* ensure that a module implements all the functions in that set.
@@ -101,7 +101,7 @@ If you have to, you can think of behaviours like interfaces in object oriented l
101101

102102
### Defining behaviours
103103

104-
Say we want to implement a bunch of parsers, each parsing structured data: for example, a JSON parser and a YAML parser. Each of these two parsers will *behave* the same way: both will provide a `parse/1` function and a `extensions/0` function. The `parse/1` function will return an Elixir representation of the structured data, while the `extensions/0` function will return a list of file extensions that can be used for each type of data (e.g., `.json` for JSON files).
104+
Say we want to implement a bunch of parsers, each parsing structured data: for example, a JSON parser and a YAML parser. Each of these two parsers will *behave* the same way: both will provide a `parse/1` function and an `extensions/0` function. The `parse/1` function will return an Elixir representation of the structured data, while the `extensions/0` function will return a list of file extensions that can be used for each type of data (e.g., `.json` for JSON files).
105105

106106
We can create a `Parser` behaviour:
107107

getting-started/where-to-go-next.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Elixir is an extensible and very customizable programming language thanks to its
2828

2929
## Community and other resources
3030

31-
We have a [Learning](/learning.html) section that explores books, screencasts and other resources for learning Elixir and explore the ecossystem. There are also plenty of Elixir resources out there, like conference talks, open source projects, and other learning material produced by the community.
31+
We have a [Learning](/learning.html) section that explores books, screencasts and other resources for learning Elixir and explore the ecosystem. There are also plenty of Elixir resources out there, like conference talks, open source projects, and other learning material produced by the community.
3232

3333
Remember that in case of any difficulties, you can always visit the **#elixir-lang** channel on **irc.freenode.net** or send a message to the [mailing list](http://groups.google.com/group/elixir-lang-talk). You can be sure that there will be someone willing to help. To keep posted on the latest news and announcements, follow the [blog](/blog/) and follow the language development on the [elixir-core mailing list](http://groups.google.com/group/elixir-lang-core).
3434

0 commit comments

Comments
 (0)