fix minor typo

"synctax" to "syntax"
This commit is contained in:
Ahmed Magdy Seleem 2020-04-03 01:35:49 +02:00 committed by GitHub
parent d84673a6ec
commit 81a63cfdb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ Class fields are a recent addition to the language.
Previously, classes only had methods. Previously, classes only had methods.
"Class fields" is a synctax that allows to add any properties. "Class fields" is a syntax that allows to add any properties.
For instance, let's add `name` property to `class User`: For instance, let's add `name` property to `class User`: