summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/ReferencePart.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/reference/ReferencePart.tex b/doc/reference/ReferencePart.tex
index bf038648b0..2f53de4752 100644
--- a/doc/reference/ReferencePart.tex
+++ b/doc/reference/ReferencePart.tex
@@ -3054,9 +3054,9 @@ for $x$ is given; hence this type needs to be inferrable from the
context of the expression.
\example The following method returns the $n$'th column of a given
-list of row-lists $xss$, using methods \lstlistinline@map@,
-\lstlistinline@drop@ and \lstlistinline@head@ defined in class
-\lstlinline@scala.List@.
+list of row-lists $xss$, using methods \lstinline@map@,
+\lstinline@drop@ and \lstinline@head@ defined in class
+\lstinline@scala.List@.
\begin{lstlisting}
def column[T](xss: List[List[T]], n: int): List[T] =
xss.map(.drop(i)).map(.head)