You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FFI tutorial section 8 Accessing foreign globals describes writing an extern static mut, but it would be helpful to mention that reading is also unsafe.
The code example has two writes and no reads, so perhaps if the example is also updated with a read it may save some readers some trouble.