Skip to content

Commit

Permalink
Merge pull request #169 from rzk-lang/blog-hotfix/formatter-post
Browse files Browse the repository at this point in the history
Blog hotfix: formatter post
  • Loading branch information
fizruk authored Jan 17, 2024
2 parents 81d20ea + e8bee72 commit b507736
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/docs/en/posts/2023-12-24-formatter.rzk.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ inserting a new line somewhere in the line, there are $O(2^n)$ possible choices
to compare between for inserting line breaks.
For example, consider the following Rzk code:
```rzk
#lang rzk-1
#define id (A : U) (x : A) : A := x
```
which has 11 positions where a new line can be inserted, as shown by these markers:
```rzk
```
#define id (A : U) (x : A) : A := x
-- ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
```
This amounts to 2048 combinations that have to be ranked for such a simple line.
Even the ranking itself is not a straightforward problem to tackle.
Expand Down

0 comments on commit b507736

Please sign in to comment.