Fix use of deprecated std.array_list.Managed.init used as an example in testing_detect_leak.zig#26015
Conversation
…in testing_detect_leak.
Yes, though I'm afraid we can't guarantee anything will be looked at in a timely manner. (Typo fixes are an exception to this rule; see #21660.) WRT this PR, IOKG04 is correct that this should use I'd also ask that the local be called |
Co-authored-by: Rue <78876133+IOKG04@users.noreply.github.com>
No worries.
Changed it. Is there some git hygiene thing to follow? Or if it's just a few commits like this it doesn't matter? (will just be squashed when merging?) ^ When checking for this, just noticed that the https://github.com/ziglang/zig/blob/master/.github/CONTRIBUTING.md#editing-source-code that's linked in the main repo doesn't exist? https://github.com/ziglang/zig?tab=readme-ov-file#option-2-using-cmake-and-microsoft-visual-studio |
For small PRs it doesn't matter too much, since we'll just squash on merge if there are multiple commits in a small PR. For bigger PRs, try to keep a clean commit history, particularly if it helps to understand the patch. Ideally, try to make commits fairly atomic (i.e. each commit does one thing and does it fully) and avoid merge commits (prefer rebasing); but we're not strict on it, and ultimately we can always fix up commit history on merge if we need to.
Sorry, we just (literally yesterday) reshuffled a bunch of documentation, so there are some dead links at the minute! |
I'm new to zig and encountered a deprecated thing being used while going through the reference docs.
(Is it ok to just PR small fixes like this? I looked into the contributing docs and couldn't find anything - or maybe I just missed it).