]> granicus.if.org Git - llvm/commitdiff
[ADT] Fix comment on StringRef::take_back. NFC
authorJustin Lebar <jlebar@google.com>
Fri, 3 Feb 2017 15:13:34 +0000 (15:13 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 3 Feb 2017 15:13:34 +0000 (15:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294010 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringRef.h

index d80a848c44a13b32751289bcc516316e173acd2e..0fc0b4becf1023bbded5f7c6e423748df13ec915 100644 (file)
@@ -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