Fix grammatical errors

This commit is contained in:
Divay Prakash 2019-05-11 02:00:29 +05:30
parent b13f63e928
commit 22b6835d34

View File

@ -334,7 +334,7 @@ class LearnHaxe3 {
Switch statements in Haxe are very powerful. In addition to working Switch statements in Haxe are very powerful. In addition to working
on basic values like strings and ints, they can also work on the on basic values like strings and ints, they can also work on the
generalized algebraic data types in enums (more on enums later). generalized algebraic data types in enums (more on enums later).
Here's some basic value examples for now: Here are some basic value examples for now:
*/ */
var my_dog_name = "fido"; var my_dog_name = "fido";
var favorite_thing = ""; var favorite_thing = "";
@ -594,7 +594,7 @@ class ComplexEnumTest {
public static function example() { public static function example() {
var e1:ComplexEnum = IntEnum(4); // specifying the enum parameter var e1:ComplexEnum = IntEnum(4); // specifying the enum parameter
// Now we can switch on the enum, as well as extract any parameters // Now we can switch on the enum, as well as extract any parameters
// it might of had. // it might have had.
switch(e1) { switch(e1) {
case IntEnum(x) : trace('$x was the parameter passed to e1'); case IntEnum(x) : trace('$x was the parameter passed to e1');
default: trace("Shouldn't be printed"); default: trace("Shouldn't be printed");