Skip to content

Commit

Permalink
Replace comments mentioning Std.is with Std.isOfType (#3263)
Browse files Browse the repository at this point in the history
* Update OneOfTwo.hx

* Update OneOfThree.hx

* Update OneOfFour.hx

* Update ConsoleUtil.hx
  • Loading branch information
Vortex2Oblivion authored Oct 6, 2024
1 parent 38d5323 commit b635875
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flixel/system/debug/console/ConsoleUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class ConsoleUtil
else if (Reflect.isObject(Object)) // get instance fields
fields = Type.getInstanceFields(Type.getClass(Object));

// on Flash, enums are classes, so Std.is(_, Enum) fails
// on Flash, enums are classes, so Std.isOfType(_, Enum) fails
fields.remove("__constructs__");

var filteredFields = [];
Expand Down
2 changes: 1 addition & 1 deletion flixel/util/typeLimit/OneOfFour.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package flixel.util.typeLimit;
/**
* Useful to limit a Dynamic function argument's type to the specified
* type parameters. This does NOT make the use of Dynamic type-safe in
* any way (the underlying type is still Dynamic and Std.is() checks +
* any way (the underlying type is still Dynamic and Std.isOfType() checks +
* casts are necessary).
*/
abstract OneOfFour<T1, T2, T3, T4>(Dynamic) from T1 from T2 from T3 from T4 to T1 to T2 to T3 to T4 {}
2 changes: 1 addition & 1 deletion flixel/util/typeLimit/OneOfThree.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package flixel.util.typeLimit;
/**
* Useful to limit a Dynamic function argument's type to the specified
* type parameters. This does NOT make the use of Dynamic type-safe in
* any way (the underlying type is still Dynamic and Std.is() checks +
* any way (the underlying type is still Dynamic and Std.isOfType() checks +
* casts are necessary).
*/
abstract OneOfThree<T1, T2, T3>(Dynamic) from T1 from T2 from T3 to T1 to T2 to T3 {}
2 changes: 1 addition & 1 deletion flixel/util/typeLimit/OneOfTwo.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package flixel.util.typeLimit;
/**
* Useful to limit a Dynamic function argument's type to the specified
* type parameters. This does NOT make the use of Dynamic type-safe in
* any way (the underlying type is still Dynamic and Std.is() checks +
* any way (the underlying type is still Dynamic and Std.isOfType() checks +
* casts are necessary).
*/
abstract OneOfTwo<T1, T2>(Dynamic) from T1 from T2 to T1 to T2 {}

0 comments on commit b635875

Please sign in to comment.