@@ -2776,7 +2776,7 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *mut T {}
2776
2776
#[ unstable( feature = "coerce_unsized" , issue = "27732" ) ]
2777
2777
impl < T : ?Sized +Unsize < U > , U : ?Sized > CoerceUnsized < * const U > for * const T { }
2778
2778
2779
- /// Both `in ( PLACE) EXPR` and `box EXPR` desugar into expressions
2779
+ /// Both `PLACE <- EXPR` and `box EXPR` desugar into expressions
2780
2780
/// that allocate an intermediate "place" that holds uninitialized
2781
2781
/// state. The desugaring evaluates EXPR, and writes the result at
2782
2782
/// the address returned by the `pointer` method of this trait.
@@ -2791,7 +2791,7 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
2791
2791
/// converting the agent to an instance of the owning pointer, via the
2792
2792
/// appropriate `finalize` method (see the `InPlace`.
2793
2793
///
2794
- /// If evaluating EXPR fails, then the destructor for the
2794
+ /// If evaluating EXPR fails, then it is up to the destructor for the
2795
2795
/// implementation of Place to clean up any intermediate state
2796
2796
/// (e.g. deallocate box storage, pop a stack, etc).
2797
2797
#[ unstable( feature = "placement_new_protocol" , issue = "27779" ) ]
@@ -2802,9 +2802,9 @@ pub trait Place<Data: ?Sized> {
2802
2802
fn pointer ( & mut self ) -> * mut Data ;
2803
2803
}
2804
2804
2805
- /// Interface to implementations of `in ( PLACE) EXPR`.
2805
+ /// Interface to implementations of `PLACE <- EXPR`.
2806
2806
///
2807
- /// `in ( PLACE) EXPR` effectively desugars into:
2807
+ /// `PLACE <- EXPR` effectively desugars into:
2808
2808
///
2809
2809
/// ```rust,ignore
2810
2810
/// let p = PLACE;
@@ -2817,7 +2817,7 @@ pub trait Place<Data: ?Sized> {
2817
2817
/// }
2818
2818
/// ```
2819
2819
///
2820
- /// The type of `in ( PLACE) EXPR` is derived from the type of `PLACE`;
2820
+ /// The type of `PLACE <- EXPR` is derived from the type of `PLACE`;
2821
2821
/// if the type of `PLACE` is `P`, then the final type of the whole
2822
2822
/// expression is `P::Place::Owner` (see the `InPlace` and `Boxed`
2823
2823
/// traits).
@@ -2835,12 +2835,12 @@ pub trait Placer<Data: ?Sized> {
2835
2835
fn make_place ( self ) -> Self :: Place ;
2836
2836
}
2837
2837
2838
- /// Specialization of `Place` trait supporting `in ( PLACE) EXPR`.
2838
+ /// Specialization of `Place` trait supporting `PLACE <- EXPR`.
2839
2839
#[ unstable( feature = "placement_new_protocol" , issue = "27779" ) ]
2840
2840
pub trait InPlace < Data : ?Sized > : Place < Data > {
2841
- /// `Owner` is the type of the end value of `in ( PLACE) EXPR`
2841
+ /// `Owner` is the type of the end value of `PLACE <- EXPR`
2842
2842
///
2843
- /// Note that when `in ( PLACE) EXPR` is solely used for
2843
+ /// Note that when `PLACE <- EXPR` is solely used for
2844
2844
/// side-effecting an existing data-structure,
2845
2845
/// e.g. `Vec::emplace_back`, then `Owner` need not carry any
2846
2846
/// information at all (e.g. it can be the unit type `()` in that
0 commit comments