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