From 477879333e91dd917a027d62db1804e5540b72d4 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 20 Mar 2021 12:00:20 -0700 Subject: [PATCH] docs- include std in identifier --- docs/commands/fetch.md | 3 +-- docs/deps.zig.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/commands/fetch.md b/docs/commands/fetch.md index 182810a21a58fe3aa565ee0c202ceef8e126648a..b46bd57f39ec69fc96c0d917a78190bb78ecc3cb 100644 --- a/docs/commands/fetch.md +++ b/docs/commands/fetch.md @@ -11,10 +11,9 @@ For a full reference on the fields available in `deps.zig` you can check [here]( ### Adding `deps.zig` to your `build.zig` ```diff const std = @import("std"); - const Builder = std.build.Builder; +const deps = @import("./deps.zig"); - pub fn build(b: *Builder) void { + pub fn build(b: *std.build.Builder) void { const target = b.standardTargetOptions(.{}); const mode = b.standardReleaseOptions(); diff --git a/docs/deps.zig.md b/docs/deps.zig.md index 9f9c280888e391e443cce9b23769c4e5b90485cd..46691d1c5008f537f1ed3123bd26ce9d14bba1cd 100644 --- a/docs/deps.zig.md +++ b/docs/deps.zig.md @@ -6,7 +6,7 @@ This file is generated by [`zigmod fetch`](commands/fetch.md) and is an amalgama The relative path root to which all dependency sources are saved. Currently always `.zigmod/deps`. ### `addAllTo` -- Type: `pub fn (exe: *build.LibExeObjStep) void` +- Type: `pub fn (exe: *std.build.LibExeObjStep) void` A helper function to add all of the packages, C files, and system libraries to the passed exectuable. It will also automatically link libC in the event that any C files are found in the dependency tree. ### `_ids` -- 2.54.0