From 3d9c14031482da9f186f88bbc5df53dc70755d3a Mon Sep 17 00:00:00 2001 From: ivanjermakov Date: Thu, 21 Nov 2024 21:48:11 +0100 Subject: [PATCH] Std: typos --- src/std/future/runtime.no | 4 ++-- src/std/int.no | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/std/future/runtime.no b/src/std/future/runtime.no index 41e6d87..c61f626 100644 --- a/src/std/future/runtime.no +++ b/src/std/future/runtime.no @@ -20,7 +20,7 @@ pub let withPollingRate = fn(pollingRate: Int): Runtime { Runtime(pollingRate, [], []) } -pub let loop = fn(runtime): Unit { +pub let loop = fn(runtime: Runtime): Unit { while runtime.queue.count() > 0 { let next = runtime.queue.popFront()! next.state = future::Pending() @@ -42,7 +42,7 @@ pub let loop = fn(runtime): Unit { } } -pub let spawn = fn(runtime, future: Future): Future { +pub let spawn = fn(runtime: Runtime, future: Future): Future { runtime.queue.add(future) future.state = future::Queued() future diff --git a/src/std/int.no b/src/std/int.no index 8121db2..7144912 100644 --- a/src/std/int.no +++ b/src/std/int.no @@ -30,7 +30,7 @@ impl Num for Int { } } -pub let mod = fn(int, divisor: Int): Int { +pub let mod = fn(int: Int, divisor: Int): Int { modInt(int, divisor) }