mojodojodev / mojodojo.dev

Learning materials for the Mojo🔥programming language
https://mojodojo.dev/
87 stars 16 forks source link

Fixed InlinedFiexedVector declaration syntax #55

Closed Harry-Zhang121 closed 5 months ago

Harry-Zhang121 commented 10 months ago

According to the official documentation the parameter for declaring this vector is [type, size]. However it is the opposite order in this example. Running the original example results in compiler error:

'InlinedFixedVector' parameter #0 has 'AnyType' type, but value has type 'IntLiteral'

Note: I manually changed the notebook code and markdown file. I hope this is ok.