Skip to content

Commit a53b012

Browse files
authored
Updated documentation for is_palindrome
1 parent 42bbfde commit a53b012

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/is_palindrome.qbk

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ is_palindrome(std::begin(oddNonPalindrome), std::end(oddNonPalindrome), funcComp
6565
is_palindrome(std::begin(oddPalindrome), std::end(oddPalindrome)) --> true
6666
is_palindrome(evenPalindrome, std::equal_to<int>())) --> true
6767
is_palindrome(std::begin(evenNonPalindrome), std::end(evenNonPalindrome)) --> false
68-
is_palindrome(nullptr) --> true
6968
is_palindrome("a") --> true
7069
is_palindrome("aba", std::equal_to<char>()) --> true
7170
``
@@ -84,7 +83,7 @@ All of the variants of `is_palindrome` take their parameters by value, const poi
8483

8584
[heading Notes]
8685

87-
* `is_palindrome` returns true for empty ranges, null pointers and for single element ranges.
86+
* `is_palindrome` returns true for empty ranges, const char* null pointers and for single element ranges.
8887

8988
* If you use version of 'is_palindrome' without custom predicate, 'is_palindrome' uses default 'operator==()' for elements.
9089

0 commit comments

Comments
 (0)