]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #34258 - durka:patch-25, r=steveklabnik
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 29 Jul 2016 09:57:53 +0000 (11:57 +0200)
committerGitHub <noreply@github.com>
Fri, 29 Jul 2016 09:57:53 +0000 (11:57 +0200)
book/ffi: nullable pointer cleanup

Expand the "nullable pointer optimization" section with a code example. Fixes #34250.

I also noticed that many of the examples use the libc crate just for types such as `c_char` and `c_int`, which are now available through `std::os::raw`. I changed the ones that don't need to rely on libc. I'm glad to revert that part of the commit if it's unwanted churn.


Trivial merge