mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: change optional to option (#16914)
This commit is contained in:
@ -83,14 +83,14 @@ fn panic_debug(line_no int, file string, mod string, fn_name string, s string) {
|
||||
vhalt()
|
||||
}
|
||||
|
||||
// panic_optional_not_set is called by V, when you use option error propagation in your main function.
|
||||
// panic_option_not_set is called by V, when you use option error propagation in your main function.
|
||||
// It ends the program with a panic.
|
||||
[noreturn]
|
||||
pub fn panic_optional_not_set(s string) {
|
||||
panic('optional not set (${s})')
|
||||
pub fn panic_option_not_set(s string) {
|
||||
panic('option not set (${s})')
|
||||
}
|
||||
|
||||
// panic_optional_not_set is called by V, when you use result error propagation in your main function
|
||||
// panic_result_not_set is called by V, when you use result error propagation in your main function
|
||||
// It ends the program with a panic.
|
||||
[noreturn]
|
||||
pub fn panic_result_not_set(s string) {
|
||||
|
Reference in New Issue
Block a user