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

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

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

Visibility: public

Requested revision: 9f215318b8967940a8fc2385de9bc0e3faf02e7e

Requested commit: 9f215318b8967940a8fc2385de9bc0e3faf02e7e

Commit: 9f215318b8967940a8fc2385de9bc0e3faf02e7e

Tree: d084f0db90dcb4744cc70325a0dbc5ae8b836b05

Author: Jonathan Marler

Committer: Andrew Kelley

## 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

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

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