Skip to content

Fix typos in annotation descriptions #2772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* `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)
* `CHG` Change spacing of parameter inlay hints to match other LSPs, like `rust-analyzer`
* `FIX` Inconsistent type narrow behavior of function call args [#2758](https://github.com/LuaLS/lua-language-server/issues/2758)
* `FIX` Typos in annotation descriptions

## 3.9.3
`2024-6-11`
Expand Down
4 changes: 2 additions & 2 deletions locale/en-us/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
---@operation add(Vector):Vector
---@operator add(Vector):Vector

vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
Expand All @@ -1178,7 +1178,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
---@operation unm:integer
---@operator unm:integer

pA = Passcode.new(1234)
pB = -pA
Expand Down
8 changes: 4 additions & 4 deletions locale/pt-br/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
---@operation add(Vector):Vector
---@operator add(Vector):Vector

vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
Expand All @@ -1178,7 +1178,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
---@operation unm:integer
---@operator unm:integer

pA = Passcode.new(1234)
pB = -pA
Expand Down Expand Up @@ -1216,7 +1216,7 @@ setColor(colors.green)
LUADOC_DESC_SOURCE = -- TODO: need translate!
[=[
Provide a reference to some source code which lives in another file. When
searching for the defintion of an item, its `@source` will be used.
searching for the definition of an item, its `@source` will be used.

## Syntax
`@source <path>`
Expand Down Expand Up @@ -1264,7 +1264,7 @@ end
LUADOC_DESC_PRIVATE = -- TODO: need translate!
[=[
Mark a function as private to a @class. Private functions can be accessed only
from within their class and are not accessable from child classes.
from within their class and are not accessible from child classes.

## Syntax
`@private`
Expand Down
8 changes: 4 additions & 4 deletions locale/zh-cn/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
---@operation add(Vector):Vector
---@operator add(Vector):Vector

vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
Expand All @@ -1178,7 +1178,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
---@operation unm:integer
---@operator unm:integer

pA = Passcode.new(1234)
pB = -pA
Expand Down Expand Up @@ -1216,7 +1216,7 @@ setColor(colors.green)
LUADOC_DESC_SOURCE = -- TODO: need translate!
[=[
Provide a reference to some source code which lives in another file. When
searching for the defintion of an item, its `@source` will be used.
searching for the definition of an item, its `@source` will be used.

## Syntax
`@source <path>`
Expand Down Expand Up @@ -1264,7 +1264,7 @@ end
LUADOC_DESC_PRIVATE = -- TODO: need translate!
[=[
Mark a function as private to a @class. Private functions can be accessed only
from within their class and are not accessable from child classes.
from within their class and are not accessible from child classes.

## Syntax
`@private`
Expand Down
8 changes: 4 additions & 4 deletions locale/zh-tw/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ Provide type declaration for [operator metamethods](http://lua-users.org/wiki/Me
### Vector Add Metamethod
```
---@class Vector
---@operation add(Vector):Vector
---@operator add(Vector):Vector

vA = Vector.new(1, 2, 3)
vB = Vector.new(10, 20, 30)
Expand All @@ -1172,7 +1172,7 @@ vC = vA + vB
### Unary Minus
```
---@class Passcode
---@operation unm:integer
---@operator unm:integer

pA = Passcode.new(1234)
pB = -pA
Expand Down Expand Up @@ -1210,7 +1210,7 @@ setColor(colors.green)
LUADOC_DESC_SOURCE = -- TODO: need translate!
[=[
Provide a reference to some source code which lives in another file. When
searching for the defintion of an item, its `@source` will be used.
searching for the definition of an item, its `@source` will be used.

## Syntax
`@source <path>`
Expand Down Expand Up @@ -1258,7 +1258,7 @@ end
LUADOC_DESC_PRIVATE = -- TODO: need translate!
[=[
Mark a function as private to a @class. Private functions can be accessed only
from within their class and are not accessable from child classes.
from within their class and are not accessible from child classes.

## Syntax
`@private`
Expand Down
Loading