1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: check (mut f Foo) syntax

This commit is contained in:
yuyi
2020-05-17 19:51:18 +08:00
committed by GitHub
parent b138cadbcb
commit 7f4cf08516
87 changed files with 492 additions and 480 deletions

View File

@@ -15,7 +15,7 @@ pub fn new_waitgroup() &WaitGroup {
return &WaitGroup{mu: sync.new_mutex() }
}
pub fn (wg mut WaitGroup) add(delta int) {
pub fn (mut wg WaitGroup) add(delta int) {
wg.mu.lock()
wg.active += delta
wg.mu.unlock()
@@ -24,7 +24,7 @@ pub fn (wg mut WaitGroup) add(delta int) {
}
}
pub fn (wg mut WaitGroup) done() {
pub fn (mut wg WaitGroup) done() {
wg.add(-1)
}
@@ -39,4 +39,3 @@ pub fn (wg &WaitGroup) wait() {
}
}
}