Skip to content

Commit

Permalink
Merge pull request #2252 from dandv/patch-2
Browse files Browse the repository at this point in the history
Fix grammar in Classes
  • Loading branch information
RyanCavanaugh authored Apr 26, 2023
2 parents bc33883 + 62a3127 commit 83dd29b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/documentation/copy/en/handbook-v2/Classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ c.y = 10;
</blockquote>

Classes may `extend` from a base class.
A derived class has all the properties and methods of its base class, and also define additional members.
A derived class has all the properties and methods of its base class, and can also define additional members.

```ts twoslash
class Animal {
Expand Down Expand Up @@ -723,7 +723,7 @@ class Derived extends Base {
}
```

Because `private` members aren't visible to derived classes, a derived class can't increase its visibility:
Because `private` members aren't visible to derived classes, a derived class can't increase their visibility:

```ts twoslash
// @errors: 2415
Expand Down

0 comments on commit 83dd29b

Please sign in to comment.