diff --git a/_posts/2015-03-27-rust-xxdb.md b/_posts/2015-03-27-rust-xxdb.md index a0e207b..925f4ed 100644 --- a/_posts/2015-03-27-rust-xxdb.md +++ b/_posts/2015-03-27-rust-xxdb.md @@ -119,10 +119,10 @@ fundamental things as accessing elements in a slice, accessing fields of an enum or tuple, anything that uses auto-dereferencing, or calling Rust-defined methods, functions, or closures. -If the you know the internal representation of things you can do some funky +If you know the internal representation of things you can do some funky stuff like using C pointer arithmetic to access elements in a slice: -```C +```c print slice.data_ptr[3] ```