mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: shorten main.const_name
to just const_name
This commit is contained in:
@@ -67,7 +67,7 @@ const (
|
||||
|
||||
fn main() {
|
||||
// get a mutable reference to the subscriber
|
||||
mut sub := main.eb.subscriber
|
||||
mut sub := eb.subscriber
|
||||
// subscribe to the 'error' event
|
||||
sub.subscribe('error', on_error)
|
||||
// start the work
|
||||
|
Reference in New Issue
Block a user