equal
deleted
inserted
replaced
37 </code> |
37 </code> |
38 |
38 |
39 These are all _incorrect_ usages of the `loc` function: |
39 These are all _incorrect_ usages of the `loc` function: |
40 <code language="lua"> |
40 <code language="lua"> |
41 local l |
41 local l |
42 l = loc( "Hello World") -- Contains space. This is valid Lua code but |
42 l = loc( "Hello World") -- Contains space |
43 l = loc ("Hello World") -- Contains space |
43 l = loc ("Hello World") -- Contains space |
44 l = loc('Hello World') -- Not double quotes |
44 l = loc('Hello World') -- Not double quotes |
45 local str = "Hello World" |
45 local str = "Hello World" |
46 l = loc(str) -- Not a literal string |
46 l = loc(str) -- Not a literal string |
47 l = loc(str .. ", how are you?") -- Only partially a literal string |
47 l = loc(str .. ", how are you?") -- Only partially a literal string |