Skip to content

Commit f08367f

Browse files
majectyjuhyung
andauthored
[lua/ko] apply minor corrections to Korean Lua documentation (#5355)
* [lua/ko] Remove duplicate English lines from Korean docs * Fix typo in Korean metatable description --------- Co-authored-by: juhyung <[email protected]>
1 parent c828bf5 commit f08367f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ko/lua.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ print(u[6.28]) -- "tau"가 출력
160160

161161
-- 키 매칭은 기본적으로 숫자와 문자열에 대해서는 값으로 하지만
162162
-- 테이블에 대해서는 식별자로 합니다.
163-
a = u['@!#'] -- Now a = 'qbert'.
164-
b = u[{}] -- We might expect 1729, but it's nil:
165163
a = u['@!#'] -- 이제 a는 'qbert'입니다.
166164
b = u[{}] -- 1729를 예상했겠지만 nil입니다:
167165
-- 탐색이 실패하기 때문에 b는 nil입니다. 탐색이 실패하는 이유는
@@ -230,7 +228,7 @@ myFavs = {food = 'pizza'}
230228
setmetatable(myFavs, {__index = defaultFavs})
231229
eatenBy = myFavs.animal -- 동작합니다! 고마워요, 메타테이블!
232230

233-
-- 직접적인 메타테이블 탐색이 실패할 경우 메타테이블의 __index 값을 이용해
231+
-- 직접적인 테이블 탐색이 실패할 경우 메타테이블의 __index 값을 이용해
234232
-- 재시도하고, 이런 과정이 반복됩니다.
235233

236234
-- __index 값은 좀 더 세분화된 탐색을 위해 function(tbl, key)가

0 commit comments

Comments
 (0)