From 4c87281b5cf0e9268107f6456aeb16d097d1eb76 Mon Sep 17 00:00:00 2001 From: Shritesh Date: Mon, 13 Jan 2020 20:19:50 -0600 Subject: [PATCH] [docs] Add libc dependency to sentinel-term ptr example Fixes "dependency on library c must be explicitly specified in the build command" error --- doc/langref.html.in | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/langref.html.in b/doc/langref.html.in index 233e7799fb..442e4ac52b 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2157,6 +2157,7 @@ test "allowzero" { against buffer overflow and overreads.

{#code_begin|exe_build_err#} + {#link_libc#} const std = @import("std"); // This is also available as `std.c.printf`.