From d43ddba84b2286351e4475be6d697f4e5d4a5719 Mon Sep 17 00:00:00 2001 From: Akshay Dixit Date: Sat, 7 Mar 2015 23:33:15 +0530 Subject: [PATCH] Fixed simple typos --- docs/programming_guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/programming_guide.md b/docs/programming_guide.md index efedc1b5a75b5..1f4e99e317c59 100644 --- a/docs/programming_guide.md +++ b/docs/programming_guide.md @@ -1710,7 +1710,7 @@ Generic: val env = ExecutionEnvironment.getExecutionEnvironment // read text file from local files system -val localLiens = env.readTextFile("file:///path/to/my/textfile") +val localLines = env.readTextFile("file:///path/to/my/textfile") // read text file from a HDFS running at nnHost:nnPort val hdfsLines = env.readTextFile("hdfs://nnHost:nnPort/path/to/my/textfile") @@ -2222,7 +2222,7 @@ val initial = env.fromElements(0) val count = initial.iterate(10000) { iterationInput: DataSet[Int] => val result = iterationInput.map { i => val x = Math.random() - val y = Math.randon() + val y = Math.random() i + (if (x * x + y * y < 1) 1 else 0) } result