Skip to content

Fix grammar in Classes #2252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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