You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ns...@apache.org on 2018/11/02 23:05:34 UTC

[incubator-mxnet] branch master updated: Fix variable name in tutorial code snippet (#13052)

This is an automated email from the ASF dual-hosted git repository.

nswamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 50f43f0  Fix variable name in tutorial code snippet (#13052)
50f43f0 is described below

commit 50f43f05ab61fe9e19698bb18dc34858a240b263
Author: Joel Wong <wo...@users.noreply.github.com>
AuthorDate: Sat Nov 3 10:05:23 2018 +1100

    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 e5f071b..4d6a5ae 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) {