From e4e49e73ff0187d3dbee7dd3803d19d80426f54f Mon Sep 17 00:00:00 2001 From: Viktor Taranenko Date: Sun, 11 Oct 2015 11:49:13 +0100 Subject: [PATCH] types_serialization.md: fix typo in Scala functions type descriptors --- docs/internals/types_serialization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/internals/types_serialization.md b/docs/internals/types_serialization.md index 19260f1195cd4..8a93ccd519c83 100644 --- a/docs/internals/types_serialization.md +++ b/docs/internals/types_serialization.md @@ -127,7 +127,7 @@ Another common cause are generic methods, which can be fixed as described in the Consider the following case below: {% highlight scala %} -def[T] selectFirst(input: DataSet[(T, _)]) : DataSet[T] = { +def selectFirst[T](input: DataSet[(T, _)]) : DataSet[T] = { input.map { v => v._1 } } @@ -148,7 +148,7 @@ information will then be generated at the sites where the method is invoked, rat method is defined. {% highlight scala %} -def[T : TypeInformation] selectFirst(input: DataSet[(T, _)]) : DataSet[T] = { +def selectFirst[T : TypeInformation](input: DataSet[(T, _)]) : DataSet[T] = { input.map { v => v._1 } } {% endhighlight %}