You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: getting-started/typespecs-and-behaviours.markdown
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ You may define compound custom types, e.g. maps:
59
59
}
60
60
```
61
61
62
-
[Structs](https://elixir-lang.org/getting-started/structs.html) offer similar functionalty.
62
+
[Structs](https://elixir-lang.org/getting-started/structs.html) offer similar functionality.
63
63
64
64
Let's look at another example to understand how to define more complex types. Say we have a `LousyCalculator` module, which performs the usual arithmetic operations (sum, product, and so on) but, instead of returning numbers, it returns tuples with the result of an operation as the first element and a random remark as the second element.
0 commit comments