Skip to content

Commit acc4453

Browse files
committed
updated error message
1 parent 34d57c6 commit acc4453

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

overviews/collections/arrays.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ Here is some REPL interaction that uses the `evenElems` method.
104104
In both cases, the Scala compiler automatically constructed a class manifest for the element type (first, `Int`, then `String`) and passed it to the implicit parameter of the `evenElems` method. The compiler can do that for all concrete types, but not if the argument is itself another type parameter without its class manifest. For instance, the following fails:
105105

106106
scala> def wrap[U](xs: Vector[U]) = evenElems(xs)
107-
<console>:6: error: could not find implicit value for
108-
evidence parameter of type ClassManifest[U]
107+
<console>:6: error: No ClassManifest available for U.
109108
def wrap[U](xs: Vector[U]) = evenElems(xs)
110109
^
111110

0 commit comments

Comments
 (0)