mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
std: update NativeTargetInfo.detect doc comments
`detect` doesn't take allocator anymore
This commit is contained in:
parent
14f4c73191
commit
0799e98562
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user