mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
tools: format most examples and tutorials, add them to v test-cleancode
(#9826)
This commit is contained in:
parent
dff50686d6
commit
16e79bc3ca
38 changed files with 471 additions and 433 deletions
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by an MIT license file distributed with this software package
|
||||
module particle
|
||||
|
||||
import vec2
|
||||
import particle.vec2
|
||||
import rand
|
||||
import sokol.sgl
|
||||
|
||||
|
@ -14,8 +14,8 @@ pub struct System {
|
|||
width int
|
||||
height int
|
||||
mut:
|
||||
pool []&Particle
|
||||
bin []&Particle
|
||||
pool []&Particle
|
||||
bin []&Particle
|
||||
}
|
||||
|
||||
pub fn (mut s System) init(sc SystemConfig) {
|
||||
|
@ -82,7 +82,7 @@ pub fn (mut s System) free() {
|
|||
print(ptr_str(p) + ' ouch')
|
||||
continue
|
||||
}
|
||||
unsafe {free(p)}
|
||||
unsafe { free(p) }
|
||||
}
|
||||
s.pool.clear()
|
||||
for p in s.bin {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue