chore(util/list_fn): fix typo
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
df04dbe096
commit
f6bfd11aed
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ list<T> append(list<T> const & l1, list<T> const & l2) {
|
||||||
template<typename T, typename F>
|
template<typename T, typename F>
|
||||||
list<T> map(list<T> const & l, F && f) {
|
list<T> map(list<T> const & l, F && f) {
|
||||||
static_assert(std::is_same<typename std::result_of<F(T const &)>::type, T>::value,
|
static_assert(std::is_same<typename std::result_of<F(T const &)>::type, T>::value,
|
||||||
"map: return type of f is not sxpr");
|
"map: return type of f is not equal to input type");
|
||||||
if (is_nil(l)) {
|
if (is_nil(l)) {
|
||||||
return l;
|
return l;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue