odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.89k stars 606 forks source link

Small typo in docs #3920

Closed madprops closed 3 months ago

madprops commented 3 months ago

I think this is a typo:

Why is there no pointer arithmetic? [#](https://odin-lang.org/docs/faq/#why-is-there-no-pointer-arithmetic)

Type safety and simplicity. Due to slices being a first-class datatype, a lot of the need for pointer arithmetic is reduced. However, if you still require it, the mem package provides so utility functions: mem.ptr_offset and mem.ptr_sub. Odin will allow the programmer to do unsafe things if they so wish.

provides so utility functions

Should be some probably.

Kelimion commented 3 months ago

Fixed in 93be898dbf7c37dc058e7a4060d0e3259318fc5e. Thanks!