Fix a mistake

This commit is contained in:
Egor Zotov 2019-06-24 00:38:43 +10:00 committed by GitHub
parent 9b5c1c95ec
commit 5e7a370476
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -322,7 +322,7 @@ Hiding complexity
**It's always convenient when implementation details are hidden, and a simple, well-documented external interface is available.**
To hide internal interface we use either protected or public properties:
To hide internal interface we use either protected or private properties:
- Protected fields start with `_`. That's a well-known convention, not enforced at the language level. Programmers should only access a field starting with `_` from its class and classes inheriting from it.
- Private fields start with `#`. JavaScript makes sure we only can access those from inside the class.