Skip to content

Commit

Permalink
Replace mention of ~T by Box<T> in the FFI guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Aug 25, 2014
1 parent e8ad6a8 commit 666d566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide-ffi.md
Expand Up @@ -527,8 +527,8 @@ the `libc` module, and Rust links against `libc` and `libm` by default.
# The "nullable pointer optimization"
Certain types are defined to not be `null`. This includes references (`&T`,
`&mut T`), owning pointers (`~T`), and function pointers (`extern "abi"
fn()`). When interfacing with C, pointers that might be null are often used.
`&mut T`), boxes (`Box<T>`), and function pointers (`extern "abi" fn()`).
When interfacing with C, pointers that might be null are often used.
As a special case, a generic `enum` that contains exactly two variants, one of
which contains no data and the other containing a single field, is eligible
for the "nullable pointer optimization". When such an enum is instantiated
Expand Down

18 comments on commit 666d566

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from steveklabnik
at SimonSapin@666d566

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/patch-9 = 666d566 into auto

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/patch-9 = 666d566 merged ok, testing candidate = 9e51ab27

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steveklabnik
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors: retry

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from steveklabnik
at SimonSapin@666d566

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/patch-9 = 666d566 into auto

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/patch-9 = 666d566 merged ok, testing candidate = 1e5ebd12

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from steveklabnik
at SimonSapin@666d566

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/patch-9 = 666d566 into auto

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/patch-9 = 666d566 merged ok, testing candidate = 953b6262

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from steveklabnik
at SimonSapin@666d566

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/patch-9 = 666d566 into auto

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/patch-9 = 666d566 merged ok, testing candidate = c256454

@bors
Copy link
Contributor

@bors bors commented on 666d566 Aug 31, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = c256454

Please sign in to comment.