Skip to content

Commit

Permalink
Std: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Nov 21, 2024
1 parent 5725e68 commit 3d9c140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/std/future/runtime.no
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -42,7 +42,7 @@ pub let loop = fn(runtime): Unit {
}
}

pub let spawn = fn<T>(runtime, future: Future<T>): Future<T> {
pub let spawn = fn<T>(runtime: Runtime, future: Future<T>): Future<T> {
runtime.queue.add(future)
future.state = future::Queued()
future
Expand Down
2 changes: 1 addition & 1 deletion src/std/int.no
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 3d9c140

Please sign in to comment.