authorgravatar for 63465728+alichraghi@users.noreply.github.comAli Chraghi <63465728+alichraghi@users.noreply.github.com> 2022-09-21 15:27:26+04:30
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-09-21 20:14:39+03:00
log0799e9856220cde895858ac7ae90ecf66e0b19f2
treef156c9c4c2152aee7749e0b0ea890beb68f54681
parent14f4c7319142f0c5e22330265f58267022853986

std: update NativeTargetInfo.detect doc comments

`detect` doesn't take allocator anymore

1 files changed, 0 insertions(+), 2 deletions(-)

lib/std/zig/system/NativeTargetInfo.zig-2
......@@ -35,8 +35,6 @@ pub const DetectError = error{
3535/// natively, which should be standard or default, and which are provided explicitly, this function
3636/// resolves the native components by detecting the native system, and then resolves standard/default parts
3737/// relative to that.
38/// Any resources this function allocates are released before returning, and so there is no
39/// deinitialization method.
4038pub fn detect(cross_target: CrossTarget) DetectError!NativeTargetInfo {
4139 var os = cross_target.getOsTag().defaultVersionRange(cross_target.getCpuArch());
4240 if (cross_target.os_tag == null) {