From 036a96a43e39f1c8acf75714cdcc7c6f759ec07e Mon Sep 17 00:00:00 2001 From: Anton N Ryabkov Date: Thu, 4 May 2017 08:58:04 +0700 Subject: [PATCH] Fixed sample with leex generator. --- chapters/compiler.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/compiler.asciidoc b/chapters/compiler.asciidoc index 5704d16..9922b93 100644 --- a/chapters/compiler.asciidoc +++ b/chapters/compiler.asciidoc @@ -778,7 +778,7 @@ the string/1 function that leex generates to tokenize the test file. ---- 2> c(json_tokens). {ok,json_tokens}. -3> f(File), f(L), {ok, File} = file:read_file("test.json"), L = binary_to_lisile), ok. +3> f(File), f(L), {ok, File} = file:read_file("test.json"), L = binary_to_list(File), ok. ok 4> f(Tokens), {ok, Tokens,_} = json_tokens:string(L), hd(Tokens). {'{',1}