davidsiaw / luacppinterface

A Simple C++ Interface to Lua
MIT License
167 stars 27 forks source link

Small bug in README.md example code #14

Closed magmuso closed 9 years ago

magmuso commented 9 years ago

Hi,

I was learning this framework and looking forward to including this into my project. Great work!

Just wanted to point out that there is a small bug in the code between 474 and 498 lines in README.md file where there is an example of how to work with LuaUserdata. 'lua.CreateFunction' starts in line 478, but it never gets its closing bracket and the code does not compile.

Fix would be to replace line 490 from '}' to '});'

Cheers, Martynas

davidsiaw commented 9 years ago

thanks for pointing that out! :D