Examples in CodingStandardsRust.md are wrong
The section on
CString is incorrect:
CString::new("bl\x00ah").unwrap().into_raw()will panic in the 'unwrap' call, it will never return a pointer of any kind, dangling or otherwise.
.expect()is literally '
.unwrap(), but with a custom panic message,' it doesn't return an
Optionand is no safer than unwrap, but it is self-documenting.