Skip to content

Commit

Permalink
docs: clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashuber69 committed Apr 22, 2024
1 parent 578777b commit 51050fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/getFibonacci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { serve } from "kiss-worker";
const getFibonacci = (n: number): number =>
(n < 2) ? Math.floor(n) : getFibonacci(n - 1) + getFibonacci(n - 2);

// Serve the function, so that it can be called from another thread
// Serve the function, so that it can be called from the thread that
// calls implementWorkerExternal
serve(getFibonacci);

// Export the type only
Expand Down

0 comments on commit 51050fe

Please sign in to comment.