Skip to content

Commit 8f1f0f0

Browse files
committed
Fix typos
1 parent 02f9f7c commit 8f1f0f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/docs/reference/augments/method-augments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: doc-page
33
title: "Method Augmentations"
44
---
55

6-
Method augmentations are a way to define _extension methods_. Here is a simple one:
6+
Method augmentation is a way to define _extension methods_. Here is a simple example:
77

88
```scala
99
case class Circle(x: Double, y: Double, radius: Double)
@@ -36,7 +36,7 @@ gives a compilation error:
3636

3737
### Scope of Augment Clauses
3838

39-
Augment clauses can appear anywhere in a program; there is no need to co-define them with the types they augment. Extension methods are available whereever their defining augment clause is in scope. Augment clauses can be inherited or wildcard-imported like normal definitions. This is usually sufficient to control their visibility. If more control is desired, one can also attach a name to an augment clause, like this:
39+
Augment clauses can appear anywhere in a program; there is no need to co-define them with the types they augment. Extension methods are available wherever their defining augment clause is in scope. Augment clauses can be inherited or wildcard-imported like normal definitions. This is usually sufficient to control their visibility. If more control is desired, one can also attach a name to an augment clause, like this:
4040

4141
```scala
4242
package shapeOps

docs/docs/reference/augments/trait-augments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ augment circleOps @ Circle extends HasArea {
1515
}
1616
```
1717

18-
This augemntation makes `Circle` implement the `HasArea` trait. Specifically, it defines an implicit subclass of `HasArea`
18+
This augmentation makes `Circle` implement the `HasArea` trait. Specifically, it defines an implicit subclass of `HasArea`
1919
which takes a `Circle` as argument and provides the given implementation. Hence, the implementation of the augmentation above would be like this
2020

2121
```scala

docs/docs/reference/augments/translation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Let again `(<tparams>, <T>)` be the decomposition of `<TP>`. This augmentation i
6666
implicit class <id> <tparams> ($this: <T>) <params> extends <parents> { <body'> }
6767

6868
As before, `<body'>` results from `<body>` by replacing any occurrence of `this` with `$this`. However, all
69-
parameters in <params> now stay on the class definition, instead of beging distributed to all members in `<body>`. This is necessary in general, since `<body>` might contain value definitions or other statements that cannot be
69+
parameters in <params> now stay on the class definition, instead of being distributed to all members in `<body>`. This is necessary in general, since `<body>` might contain value definitions or other statements that cannot be
7070
parameterized.
7171

7272
For example, the trait augmentation

0 commit comments

Comments
 (0)