odin-lang / odin-lang.org

http://odin-lang.org
26 stars 80 forks source link

Example code for `bit_set` used deprecated `..` op. #94

Closed WraithGlade closed 1 year ago

WraithGlade commented 1 year ago

When I ran the code for this bit_set declaration the compiler gave me a syntax deprecation warning saying that .. has been deprecated.

Furthermore, the syntax error message it gave me itself also had a (separate, different) typo in it. See:

Syntax Warning: '..' for ranges has now be deprecated, prefer '..='

Notice that it says "has now be". I think it should instead be "has been".

I haven't even finished reading the Overview docs yet though (hence I'm a total Odin newbie), so I think I should leave changing the syntax error text to someone else. So, feel free to do that too.