Skip to content

Commit 2a48dee

Browse files
teatimeguestsumneko
authored andcommitted
Fix typos in annotation descriptions
1 parent 7d06e55 commit 2a48dee

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* `FIX` Bad triggering of the `inject-field` diagnostic, when the fields are declared at the creation of the object [#2746](https://github.com/LuaLS/lua-language-server/issues/2746)
1414
* `CHG` Change spacing of parameter inlay hints to match other LSPs, like `rust-analyzer`
1515
* `FIX` Inconsistent type narrow behavior of function call args [#2758](https://github.com/LuaLS/lua-language-server/issues/2758)
16+
* `FIX` Typos in annotation descriptions
1617

1718
## 3.9.3
1819
`2024-6-11`

locale/en-us/script.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
11671167
### Vector Add Metamethod
11681168
```
11691169
---@class Vector
1170-
---@operation add(Vector):Vector
1170+
---@operator add(Vector):Vector
11711171
11721172
vA = Vector.new(1, 2, 3)
11731173
vB = Vector.new(10, 20, 30)
@@ -1178,7 +1178,7 @@ vC = vA + vB
11781178
### Unary Minus
11791179
```
11801180
---@class Passcode
1181-
---@operation unm:integer
1181+
---@operator unm:integer
11821182
11831183
pA = Passcode.new(1234)
11841184
pB = -pA

locale/pt-br/script.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
11671167
### Vector Add Metamethod
11681168
```
11691169
---@class Vector
1170-
---@operation add(Vector):Vector
1170+
---@operator add(Vector):Vector
11711171
11721172
vA = Vector.new(1, 2, 3)
11731173
vB = Vector.new(10, 20, 30)
@@ -1178,7 +1178,7 @@ vC = vA + vB
11781178
### Unary Minus
11791179
```
11801180
---@class Passcode
1181-
---@operation unm:integer
1181+
---@operator unm:integer
11821182
11831183
pA = Passcode.new(1234)
11841184
pB = -pA
@@ -1216,7 +1216,7 @@ setColor(colors.green)
12161216
LUADOC_DESC_SOURCE = -- TODO: need translate!
12171217
[=[
12181218
Provide a reference to some source code which lives in another file. When
1219-
searching for the defintion of an item, its `@source` will be used.
1219+
searching for the definition of an item, its `@source` will be used.
12201220
12211221
## Syntax
12221222
`@source <path>`
@@ -1264,7 +1264,7 @@ end
12641264
LUADOC_DESC_PRIVATE = -- TODO: need translate!
12651265
[=[
12661266
Mark a function as private to a @class. Private functions can be accessed only
1267-
from within their class and are not accessable from child classes.
1267+
from within their class and are not accessible from child classes.
12681268
12691269
## Syntax
12701270
`@private`

locale/zh-cn/script.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
11671167
### Vector Add Metamethod
11681168
```
11691169
---@class Vector
1170-
---@operation add(Vector):Vector
1170+
---@operator add(Vector):Vector
11711171
11721172
vA = Vector.new(1, 2, 3)
11731173
vB = Vector.new(10, 20, 30)
@@ -1178,7 +1178,7 @@ vC = vA + vB
11781178
### Unary Minus
11791179
```
11801180
---@class Passcode
1181-
---@operation unm:integer
1181+
---@operator unm:integer
11821182
11831183
pA = Passcode.new(1234)
11841184
pB = -pA
@@ -1216,7 +1216,7 @@ setColor(colors.green)
12161216
LUADOC_DESC_SOURCE = -- TODO: need translate!
12171217
[=[
12181218
Provide a reference to some source code which lives in another file. When
1219-
searching for the defintion of an item, its `@source` will be used.
1219+
searching for the definition of an item, its `@source` will be used.
12201220
12211221
## Syntax
12221222
`@source <path>`
@@ -1264,7 +1264,7 @@ end
12641264
LUADOC_DESC_PRIVATE = -- TODO: need translate!
12651265
[=[
12661266
Mark a function as private to a @class. Private functions can be accessed only
1267-
from within their class and are not accessable from child classes.
1267+
from within their class and are not accessible from child classes.
12681268
12691269
## Syntax
12701270
`@private`

locale/zh-tw/script.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
11611161
### Vector Add Metamethod
11621162
```
11631163
---@class Vector
1164-
---@operation add(Vector):Vector
1164+
---@operator add(Vector):Vector
11651165
11661166
vA = Vector.new(1, 2, 3)
11671167
vB = Vector.new(10, 20, 30)
@@ -1172,7 +1172,7 @@ vC = vA + vB
11721172
### Unary Minus
11731173
```
11741174
---@class Passcode
1175-
---@operation unm:integer
1175+
---@operator unm:integer
11761176
11771177
pA = Passcode.new(1234)
11781178
pB = -pA
@@ -1210,7 +1210,7 @@ setColor(colors.green)
12101210
LUADOC_DESC_SOURCE = -- TODO: need translate!
12111211
[=[
12121212
Provide a reference to some source code which lives in another file. When
1213-
searching for the defintion of an item, its `@source` will be used.
1213+
searching for the definition of an item, its `@source` will be used.
12141214
12151215
## Syntax
12161216
`@source <path>`
@@ -1258,7 +1258,7 @@ end
12581258
LUADOC_DESC_PRIVATE = -- TODO: need translate!
12591259
[=[
12601260
Mark a function as private to a @class. Private functions can be accessed only
1261-
from within their class and are not accessable from child classes.
1261+
from within their class and are not accessible from child classes.
12621262
12631263
## Syntax
12641264
`@private`

0 commit comments

Comments
 (0)