std: update NativeTargetInfo.detect doc comments

`detect` doesn't take allocator anymore
This commit is contained in:
Ali Chraghi 2022-09-21 15:27:26 +04:30 committed by Veikka Tuominen
parent 14f4c73191
commit 0799e98562

View File

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