# packed struct fix example and clarify least to most significant ordering · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/58d9004cea5f8aa73c76382cd21e1c88b1bc21e1)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 58d9004cea5f8aa73c76382cd21e1c88b1bc21e1

Requested commit: 58d9004cea5f8aa73c76382cd21e1c88b1bc21e1

Commit: 58d9004cea5f8aa73c76382cd21e1c88b1bc21e1

Tree: 1b588e30e992fccf7f0acc525b0fb6fbd7971a53

Author: Jonathan Marler

Committer: Veikka Tuominen

## Message

```
packed struct fix example and clarify least to most significant ordering

The packed struct example was mistakenly applying endianness where it
shouldn't have been.  This wasn't being caught because we don't currently
test the examples on Big-endian systems.

I updated the test to remove the endianness where it didn't apply, and
added a new part of the test to demonstrate when it would apply.

```

## Parents

- [a09a5ad574b8e85480645e0920d6cf4c7e850748](https://git.cafe/gitcafe/zig/commit/a09a5ad574b8e85480645e0920d6cf4c7e850748?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/58d9004cea5f8aa73c76382cd21e1c88b1bc21e1?format=markdown)
