mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: deprecate short struct init (#10842)
This commit is contained in:
@@ -79,7 +79,7 @@ pub fn (o Option) str() string {
|
||||
pub fn error(s string) Option {
|
||||
return Option{
|
||||
state: 2
|
||||
err: {
|
||||
err: Error{
|
||||
msg: s
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,7 @@ pub fn error(s string) Option {
|
||||
pub fn error_with_code(s string, code int) Option {
|
||||
return Option{
|
||||
state: 2
|
||||
err: {
|
||||
err: Error{
|
||||
msg: s
|
||||
code: code
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user