From 7faf3c53fd563cb6cbff3d5704d61e9c8fdd5f78 Mon Sep 17 00:00:00 2001 From: Joel Wong Date: Sat, 3 Nov 2018 10:05:23 +1100 Subject: [PATCH] Fix variable name in tutorial code snippet (#13052) Fixes incorrect variable name in tutorial code as raised in issue https://github.com/apache/incubator-mxnet/issues/13051 --- docs/tutorials/scala/char_lstm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/scala/char_lstm.md b/docs/tutorials/scala/char_lstm.md index e5f071b19c94..4d6a5aee921e 100644 --- a/docs/tutorials/scala/char_lstm.md +++ b/docs/tutorials/scala/char_lstm.md @@ -129,7 +129,7 @@ To prepare the data: ```scala scala> // Build a vocabulary of what char we have in the content scala> def buildVocab(path: String): Map[String, Int] = { - val content = readContent(dataPath).split("\n") + val content = readContent(path).split("\n") var idx = 1 // 0 is left for zero padding var theVocab = Map[String, Int]() for (line <- content) {