diff options
author | TsT <tst2005@gmail.com> | 2016-09-10 01:12:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-10 01:12:28 +0200 |
commit | 230cbbcc9bd4615eb7a2d8f39255b57059f8d501 (patch) | |
tree | 0a0ae570067b5291af96950d7e73a8cc08bb2dc4 | |
parent | d5efef63150935b136635767da75d48d18f8d1a7 (diff) | |
download | lua-llthreads2-230cbbcc9bd4615eb7a2d8f39255b57059f8d501.tar.gz lua-llthreads2-230cbbcc9bd4615eb7a2d8f39255b57059f8d501.tar.bz2 lua-llthreads2-230cbbcc9bd4615eb7a2d8f39255b57059f8d501.zip |
typo fix
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -60,7 +60,7 @@ thread:start(false, false) | |||
60 | 60 | ||
61 | -- We can call join. | 61 | -- We can call join. |
62 | -- Because of Lua state destroys in child thread we can not get | 62 | -- Because of Lua state destroys in child thread we can not get |
63 | -- returned Lua vaules so we just returns `true`. | 63 | -- returned Lua values so we just returns `true`. |
64 | thread:join() | 64 | thread:join() |
65 | ``` | 65 | ``` |
66 | 66 | ||
@@ -78,7 +78,7 @@ thread:start(true, true) | |||
78 | 78 | ||
79 | -- We can call join. | 79 | -- We can call join. |
80 | -- Because of Lua state destroys in child thread we can not get | 80 | -- Because of Lua state destroys in child thread we can not get |
81 | -- returned Lua vaules so we just returns `true`. | 81 | -- returned Lua values so we just returns `true`. |
82 | thread:join() | 82 | thread:join() |
83 | ``` | 83 | ``` |
84 | 84 | ||
@@ -111,7 +111,7 @@ local thread = require "llthreads2".new[[ | |||
111 | thread:start() | 111 | thread:start() |
112 | 112 | ||
113 | -- we can not use `thread:join(0)` because we can not call it twice | 113 | -- we can not use `thread:join(0)` because we can not call it twice |
114 | -- so all returned vaules will be lost | 114 | -- so all returned values will be lost |
115 | while thread:alive() do | 115 | while thread:alive() do |
116 | -- do some work | 116 | -- do some work |
117 | end | 117 | end |