munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.88k stars 1.04k forks source link

Small correction - the constructor in Ruby is not called "init". #1028

Open olabiniV2 opened 2 years ago

olabiniV2 commented 2 years ago

Thus, change the text to specify that Ruby calls its constructor initialize

olabiniV2 commented 2 years ago

This PR fixes #999, which I noticed after creating the PR.

olabiniV2 commented 2 years ago

@icecream17 - you are absolutely correct. This PR is only about fixing the Ruby initializer name, and nothing else. I just wanted to avoid mixing issues, so I left all the other names as is.