Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWhiting committed Dec 30, 2023
1 parent 2155c7f commit c734294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/spec/tour.kk.md
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,7 @@ The `tail` keyword guarantees that a function is tail-recursive. These functions
The `fbip` keyword guarantees that a function is optimized by the compiler to use in-place mutation when possible.
However, unlike `fip`, `fbip` allows for deallocation, and also allows for non tail calls, which means these functions can use non-constant stack space.

Both `fip` and `fbip` can allow for a constant amount of allocation using `fib(n)` or `fib(n)` where `n` is the number of constructor allocations allowed.
Both `fip` and `fbip` can allow for a constant amount of allocation using `fip(n)` or `fbip(n)` where `n` is the number of constructor allocations allowed.
This allows them to be used in insertion functions for datastructures, where at least one constructor for the inserted element is necessary.

Following are a few examples of the techniques of FBIP in action.
Expand Down

0 comments on commit c734294

Please sign in to comment.