Commit 4c87281b5c

Shritesh <shr@ite.sh>
2020-01-14 03:19:50
[docs] Add libc dependency to sentinel-term ptr example
Fixes "dependency on library c must be explicitly specified in the build command" error
1 parent e7917d0
Changed files (1)
doc/langref.html.in
@@ -2157,6 +2157,7 @@ test "allowzero" {
       against buffer overflow and overreads.
       </p>
       {#code_begin|exe_build_err#}
+      {#link_libc#}
 const std = @import("std");
 
 // This is also available as `std.c.printf`.