mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
local -> var; scope reformatted; singleton is killed finally
This commit is contained in:
parent
5ae88f820d
commit
216e716251
11067 changed files with 12168 additions and 12173 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
-- Creates a new timer
|
||||
public fun timer () {
|
||||
local t = time ();
|
||||
var t = time ();
|
||||
|
||||
fun () {
|
||||
time () - t
|
||||
|
|
@ -15,7 +15,7 @@ public fun timer () {
|
|||
|
||||
-- Formats a given time as a floating-point number
|
||||
public fun toSeconds (t) {
|
||||
local s = sprintf ("%d", t);
|
||||
var s = sprintf ("%d", t);
|
||||
|
||||
if s.length >= 7
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue