Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
saharan committed Apr 10, 2022
1 parent 151f82f commit b8ed3f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ class Struct extends ShaderStruct {
var floats:Array<Float, 8>;
var vec3s:Array<Vec3, 4>;
var mat4s:Array<Mat4, Module.LENGTH>; // you can refer external values
// var ints:Array<Int, Module.length>; // ERROR! fields start with
// lower-case alphabets cannot be used
// var ints:Array<Int, Module.length>; // ERROR! fields start with a
// lower-case alphabet cannot be used
}
class Module extends ShaderModule {
Expand All @@ -228,7 +228,7 @@ class Module extends ShaderModule {
}
```

Limitation: due to Haxe's grammar, you cannot use a field starts with lower-case alphabets for array size parameter, even if it is actually a compile-time constant.
Limitation: due to the Haxe's grammar, you cannot use a field starts with a lower-case alphabet for an array size parameter, even if it is actually a compile-time constant.

### Literal arrays and structures

Expand Down

0 comments on commit b8ed3f1

Please sign in to comment.