Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
weasle, weasle
  • Loading branch information
RalfJung committed Jul 22, 2019
commit a7b924654070f59297e86ff372ac74c5c701929f
6 changes: 3 additions & 3 deletions src/libstd/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,9 +1043,9 @@ mod prim_ref { }
/// [`FnOnce`]: ops/trait.FnOnce.html
///
/// Function pointers are pointers that point to *code*, not data. They can be called
/// just like functions. Like references, function pointers are assumed to not be null,
/// so if you want to pass a function pointer over FFI and be able to accommodate null pointers,
/// make your type `Option<fn()>` with your required signature.
/// just like functions. Like references, function pointers are, among other things, assumed to
/// not be null, so if you want to pass a function pointer over FFI and be able to accommodate null
/// pointers, make your type `Option<fn()>` with your required signature.
///
/// Plain function pointers are obtained by casting either plain functions, or closures that don't
/// capture an environment:
Expand Down