mirror of
https://github.com/vlang/v.git
synced 2025-09-16 02:49:31 -04:00
Add fn main to ls example.
parent
2a820a8a70
commit
22d8094746
@ -33,9 +33,12 @@ ls
|
||||
</td>
|
||||
<td valign="top">
|
||||
<pre>
|
||||
files := ls('.') or { panic(err) }
|
||||
println( files)
|
||||
fn main(){
|
||||
files := ls('.') or { panic(err) }
|
||||
println( files)
|
||||
}
|
||||
</pre>
|
||||
_NB: fn main(){...} is needed only temporarily._
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user