Skip to content

Commit f012662

Browse files
deploy: 52896c8
1 parent 812af8c commit f012662

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blog/bit-array-syntax/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@
225225
in construction, and a second <code>bytes</code> option, which only matches whole numbers of
226226
bytes. If given an explicit size, that number of bits/bytes is matched. If the
227227
<code>size</code> option is not used, they match everything remaining in the bit array.</p><p><strong>Note</strong>: When using the <code>bytes</code> option, size is measured in bytes, and the <code>unit</code>
228-
option cannot be used.</p><div class="codeblock"><button class="copy-button" onclick="navigator.clipboard.writeText(`let assert &lt;&lt;_, bits:bits-size(12), _:size(4)&gt;&gt; = &lt;&lt;1, 2, 3&gt;&gt;
228+
option cannot be used. This is currently a bug in Gleam, you can track its status
229+
<a href="https://github.com/gleam-lang/gleam/issues/5208" target="_blank">here</a>.</p><div class="codeblock"><button class="copy-button" onclick="navigator.clipboard.writeText(`let assert &lt;&lt;_, bits:bits-size(12), _:size(4)&gt;&gt; = &lt;&lt;1, 2, 3&gt;&gt;
229230
echo bits
230231
// &lt;&lt;2, 0:4&gt;&gt;
231232

0 commit comments

Comments
 (0)