Skip to content

Commit

Permalink
Removed misspelling in behaviours.md (elixirschool#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
LostKobrakai authored and doomspork committed Dec 10, 2016
1 parent 41b145f commit 4817218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lessons/advanced/behaviours.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Elixir includes a number of behaviours such as GenServer, but in this lesson we'

## Defining a behaviour

To better understand beahaviors let's implement one for a worker module. These workers will be expected to implement two functions: `init/1` and `perform/2`.
To better understand behaviours let's implement one for a worker module. These workers will be expected to implement two functions: `init/1` and `perform/2`.

In order to accomplish this, we'll use the `@callback` directive with syntax similar to `@spec`, this defines a __required__ method; for macros we can use `@macrocallback`. Let's specify the `init/1` and `perform/2` methods for our workers:

Expand Down

0 comments on commit 4817218

Please sign in to comment.