Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ziglang/zig
base: 9046b5eac015
Choose a base ref
...
head repository: ziglang/zig
compare: 670a0a3eed2e
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Jun 9, 2018

  1. add set function to arraylist

    so you can set a value without growing the underlying buffer,
    with range safety checks
    clownpriest authored and andrewrk committed Jun 9, 2018
    Copy the full SHA
    e0092ee View commit details
    Browse the repository at this point in the history
  2. clean up std.ArrayList

     * add `std.debug.assertError`
     * `std.ArrayList` update everything to follow `self` convention
     * rename `std.ArrayList.set` to `std.ArrayList.setOrError`
     * add `std.ArrayList.set` which asserts
    
    Before 1.0.0 we might remove some of this API, because you can use
    `toSlice()` for everything, but it's ok to add these functions as
    an experiment before then.
    andrewrk committed Jun 9, 2018
    Copy the full SHA
    fc64467 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    670a0a3 View commit details
    Browse the repository at this point in the history