[llvm] r294010 - [ADT] Fix comment on StringRef::take_back. NFC

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 3 07:13:34 PST 2017


Author: jlebar
Date: Fri Feb  3 09:13:34 2017
New Revision: 294010

URL: http://llvm.org/viewvc/llvm-project?rev=294010&view=rev
Log:
[ADT] Fix comment on StringRef::take_back.  NFC

Modified:
    llvm/trunk/include/llvm/ADT/StringRef.h

Modified: llvm/trunk/include/llvm/ADT/StringRef.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringRef.h?rev=294010&r1=294009&r2=294010&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringRef.h (original)
+++ llvm/trunk/include/llvm/ADT/StringRef.h Fri Feb  3 09:13:34 2017
@@ -600,7 +600,7 @@ namespace llvm {
       return drop_back(size() - N);
     }
 
-    /// Return a StringRef equal to 'this' but with only the first \p N
+    /// Return a StringRef equal to 'this' but with only the last \p N
     /// elements remaining.  If \p N is greater than the length of the
     /// string, the entire string is returned.
     LLVM_NODISCARD




More information about the llvm-commits mailing list