adambard/learnxinyminutes-docs — pull request #517 by weakish (2014-02-05 17:48:23+00:00)
Title: lua: typo

`LoudDog.__index` is `Dog`, not `LoudDog`.

----

Test code:

```
; lua
> Dog = {}
> function Dog:new()
>> local newObj = {sound = 'woof'}
>> self.__index = self
>> return setmetatable(newObj, self)
>> end
> LoudDog = Dog:new()
> if LoudDog.__index == Dog and LoudDog.__index
~= LoudDog then print 'true' end
true
```