on master help sign in
Add reference for ZigZag encoding source.
commit211cd1f3bd2cfac6bdd317414e864803206e1828 authorSigilante <57601680+sigilante@users.noreply.github.com> dateWed 25 May 2022, 11:52 (4 years ago) parent30aa030
1 file changed+2−1
content/docs/hoon/reference/stdlib/3a.md+2−1
content/docs/hoon/reference/stdlib/3a.md+2−1
@@ -381,7 +381,8 @@ The signed-integer type is represented by the `@s` aura. Positive integers are
381381prepended with a `--`, and negative integers are prepended with a `-`. For
382382example, `--1` represents positive one, and `-1` represents negative one.
383383
384−Zig zag encoding is used to convert atoms to signed integers. Positive signed
384+[ZigZag encoding](https://developers.google.com/protocol-buffers/docs/encoding?hl=en#signed-ints)
385+is used to convert atoms to signed integers. Positive signed
385386integers correspond to even atoms of twice their absolute value, and negative
386387signed integers correspond to odd atoms of twice their absolute value minus
387388one. For example: