]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/trans/tvec.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / librustc / middle / trans / tvec.rs
index 85962eb0d62ec2e93bf2adc73b11c302e19ad6fc..a590c5b38f4c2452f01255f95d74c02b1d57d756 100644 (file)
@@ -226,7 +226,7 @@ pub fn trans_uniq_vstore<'a>(bcx: &'a Block<'a>,
                              content_expr: &ast::Expr)
                              -> DatumBlock<'a, Expr> {
     /*!
-     * ~[...] and ~"..." allocate boxes in the exchange heap and write
+     * ~[...] and "...".to_owned() allocate boxes in the exchange heap and write
      * the array elements into them.
      */
 
@@ -234,7 +234,7 @@ pub fn trans_uniq_vstore<'a>(bcx: &'a Block<'a>,
     let fcx = bcx.fcx;
     let ccx = fcx.ccx;
 
-    // Handle ~"".
+    // Handle "".to_owned().
     match content_expr.node {
         ast::ExprLit(lit) => {
             match lit.node {