# \(breaking\) std.Buffer =\> std.ArrayListSentineled\(u8, 0\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 2e806682f451efd26bef0486ddd980ab60de0fa1

Requested commit: 2e806682f451efd26bef0486ddd980ab60de0fa1

Commit: 2e806682f451efd26bef0486ddd980ab60de0fa1

Tree: 7962a47dd9df3976a7aa8c8c5ad754d27dd55ba4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
(breaking) std.Buffer => std.ArrayListSentineled(u8, 0)

This new name (and the fact that it is a function returning a type) will
make it more clear which use cases are better suited for ArrayList and
which are better suited for ArrayListSentineled.

Also for consistency with ArrayList,
 * `append` => `appendSlice`
 * `appendByte` => `append`

Thanks daurnimator for pointing out the confusion of std.Buffer.

```

## Parents

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

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