how about that, StringRef doesn't allow any mutation, thanks to
authorChris Lattner <sabre@nondot.org>
Sat, 23 Jul 2011 17:18:57 +0000 (17:18 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Jul 2011 17:18:57 +0000 (17:18 +0000)
Frits for straightening me out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135856 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ProgrammersManual.html

index 8e9141445afe78c333a7cc25336f58bfbaf94e39..266c033bb4c4bc5674e00dd1d917145c5c823f98 100644 (file)
@@ -1280,10 +1280,10 @@ something like that).</li>
 method if the method "computes" the result string.  Instead, use
 std::string.</li>
     
-<li>StringRef's allow you to mutate the pointed-to string bytes, but because it
-doesn't own the string, it doesn't allow you to insert or remove bytes from
-the range.  For editing operations like this, it interoperates with the
-<a href="#dss_twine">Twine</a> class.</li>
+<li>StringRef's do not allow you to mutate the pointed-to string bytes and it
+doesn't allow you to insert or remove bytes from the range.  For editing 
+operations like this, it interoperates with the <a 
+href="#dss_twine">Twine</a> class.</li>
 </ol>
   
 <p>Because of its strengths and limitations, it is very common for a function to