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

more mutability fixes

This commit is contained in:
Alexander Medvednikov
2019-12-06 19:23:24 +03:00
parent e3b5d7fd7c
commit 55f32fc413
3 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@ pub fn (wg mut WaitGroup) done() {
wg.add(-1)
}
pub fn (wg mut WaitGroup) wait() {
pub fn (wg &WaitGroup) wait() {
for wg.active > 0 {
// Do not remove this, busy empty loops are optimized
// with -prod by some compilers, see issue #2874