@@ -2747,7 +2747,7 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *mut T {}
2747
2747
#[ unstable( feature = "coerce_unsized" , issue = "27732" ) ]
2748
2748
impl < T : ?Sized +Unsize < U > , U : ?Sized > CoerceUnsized < * const U > for * const T { }
2749
2749
2750
- /// Both `in ( PLACE) EXPR` and `box EXPR` desugar into expressions
2750
+ /// Both `PLACE <- EXPR` and `box EXPR` desugar into expressions
2751
2751
/// that allocate an intermediate "place" that holds uninitialized
2752
2752
/// state. The desugaring evaluates EXPR, and writes the result at
2753
2753
/// the address returned by the `pointer` method of this trait.
@@ -2762,7 +2762,7 @@ impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
2762
2762
/// converting the agent to an instance of the owning pointer, via the
2763
2763
/// appropriate `finalize` method (see the `InPlace`.
2764
2764
///
2765
- /// If evaluating EXPR fails, then the destructor for the
2765
+ /// If evaluating EXPR fails, then it is up to the destructor for the
2766
2766
/// implementation of Place to clean up any intermediate state
2767
2767
/// (e.g. deallocate box storage, pop a stack, etc).
2768
2768
#[ unstable( feature = "placement_new_protocol" , issue = "27779" ) ]
@@ -2773,9 +2773,9 @@ pub trait Place<Data: ?Sized> {
2773
2773
fn pointer ( & mut self ) -> * mut Data ;
2774
2774
}
2775
2775
2776
- /// Interface to implementations of `in ( PLACE) EXPR`.
2776
+ /// Interface to implementations of `PLACE <- EXPR`.
2777
2777
///
2778
- /// `in ( PLACE) EXPR` effectively desugars into:
2778
+ /// `PLACE <- EXPR` effectively desugars into:
2779
2779
///
2780
2780
/// ```rust,ignore
2781
2781
/// let p = PLACE;
@@ -2788,7 +2788,7 @@ pub trait Place<Data: ?Sized> {
2788
2788
/// }
2789
2789
/// ```
2790
2790
///
2791
- /// The type of `in ( PLACE) EXPR` is derived from the type of `PLACE`;
2791
+ /// The type of `PLACE <- EXPR` is derived from the type of `PLACE`;
2792
2792
/// if the type of `PLACE` is `P`, then the final type of the whole
2793
2793
/// expression is `P::Place::Owner` (see the `InPlace` and `Boxed`
2794
2794
/// traits).
@@ -2806,12 +2806,12 @@ pub trait Placer<Data: ?Sized> {
2806
2806
fn make_place ( self ) -> Self :: Place ;
2807
2807
}
2808
2808
2809
- /// Specialization of `Place` trait supporting `in ( PLACE) EXPR`.
2809
+ /// Specialization of `Place` trait supporting `PLACE <- EXPR`.
2810
2810
#[ unstable( feature = "placement_new_protocol" , issue = "27779" ) ]
2811
2811
pub trait InPlace < Data : ?Sized > : Place < Data > {
2812
- /// `Owner` is the type of the end value of `in ( PLACE) EXPR`
2812
+ /// `Owner` is the type of the end value of `PLACE <- EXPR`
2813
2813
///
2814
- /// Note that when `in ( PLACE) EXPR` is solely used for
2814
+ /// Note that when `PLACE <- EXPR` is solely used for
2815
2815
/// side-effecting an existing data-structure,
2816
2816
/// e.g. `Vec::emplace_back`, then `Owner` need not carry any
2817
2817
/// information at all (e.g. it can be the unit type `()` in that
0 commit comments