diff options
| author | Dania Rifki <atomicnumberphi@gmail.com> | 2026-02-23 21:39:55 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-24 00:19:47 +0800 |
| commit | 139cbbbc57d058470d933f9487c29759d31e4e8e (patch) | |
| tree | 9182b2c7b73d27d062c14c42bf420370e3b25ac8 /doc/docs/de | |
| parent | e2d35caf96f1330db11316cccb0b6289d56ac662 (diff) | |
| download | yuescript-139cbbbc57d058470d933f9487c29759d31e4e8e.tar.gz yuescript-139cbbbc57d058470d933f9487c29759d31e4e8e.tar.bz2 yuescript-139cbbbc57d058470d933f9487c29759d31e4e8e.zip | |
fix: update table literals examples to use curly braces instead of square brackets
Also rewrote the final paragraph
Diffstat (limited to 'doc/docs/de')
| -rw-r--r-- | doc/docs/de/doc/data-structures/table-literals.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/docs/de/doc/data-structures/table-literals.md b/doc/docs/de/doc/data-structures/table-literals.md index 4b127d8..dea062a 100644 --- a/doc/docs/de/doc/data-structures/table-literals.md +++ b/doc/docs/de/doc/data-structures/table-literals.md | |||
| @@ -3,13 +3,13 @@ | |||
| 3 | Wie in Lua werden Tabellen mit geschweiften Klammern definiert. | 3 | Wie in Lua werden Tabellen mit geschweiften Klammern definiert. |
| 4 | 4 | ||
| 5 | ```yuescript | 5 | ```yuescript |
| 6 | some_values = [1, 2, 3, 4] | 6 | some_values = {1, 2, 3, 4} |
| 7 | ``` | 7 | ``` |
| 8 | 8 | ||
| 9 | <YueDisplay> | 9 | <YueDisplay> |
| 10 | 10 | ||
| 11 | ```yue | 11 | ```yue |
| 12 | some_values = [1, 2, 3, 4] | 12 | some_values = {1, 2, 3, 4} |
| 13 | ``` | 13 | ``` |
| 14 | 14 | ||
| 15 | </YueDisplay> | 15 | </YueDisplay> |
| @@ -160,7 +160,7 @@ t = { | |||
| 160 | 160 | ||
| 161 | </YueDisplay> | 161 | </YueDisplay> |
| 162 | 162 | ||
| 163 | Lua-Tabellen haben einen Array-Teil und einen Hash-Teil, aber manchmal möchte man beim Schreiben von Lua-Tabellen eine semantische Unterscheidung zwischen Array- und Hash-Nutzung machen. Dann kannst du eine Lua-Tabelle mit **[ ]** statt **{ }** schreiben, um eine Array-Tabelle darzustellen, und das Schreiben von Schlüssel-Wert-Paaren in einer Listentabelle ist nicht erlaubt. | 163 | Lua-Tabellen haben sowohl einen Array-Teil als auch einen Hash-Teil, aber manchmal ist es nützlich, hier eine semantische Unterscheidung zu treffen. Du kannst **[ ]** anstelle von **{ }** verwenden, um eine Tabelle explizit als Array zu deklarieren; dadurch wird verhindert, dass Schlüssel-Wert-Paare hineingeschrieben werden. |
| 164 | 164 | ||
| 165 | ```yuescript | 165 | ```yuescript |
| 166 | some_values = [1, 2, 3, 4] | 166 | some_values = [1, 2, 3, 4] |
