diff options
| author | heidezomp <heidezomp@protonmail.com> | 2020-08-13 17:12:16 +0200 |
|---|---|---|
| committer | heidezomp <heidezomp@protonmail.com> | 2020-08-13 17:12:16 +0200 |
| commit | 2439f67061b007197bdd1b0037ffe4ba7b520024 (patch) | |
| tree | 1c3f49aa7fcdeb7c2e05ca38b6adf4ff1008045f /doc | |
| parent | a8e0f667c64bc6413a2c10ac76cd4e3000ceaf1b (diff) | |
| download | zig-2439f67061b007197bdd1b0037ffe4ba7b520024.tar.gz zig-2439f67061b007197bdd1b0037ffe4ba7b520024.zip | |
std.log: update documentation and example for scoped logging
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index cfde67d622..c9694ceb52 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -325,7 +325,7 @@ pub fn main() !void { represents writing data to a file. When the disk is full, a write to the file will fail. However, we typically do not expect writing text to the standard output to fail. To avoid having to handle the failure case of printing to standard output, you can use alternate functions: the - <code>std.log</code> function for proper logging or the <code>std.debug.print</code> function. + functions in <code>std.log</code> for proper logging or the <code>std.debug.print</code> function. This documentation will use the latter option to print to standard error (stderr) and silently return on failure. The next code sample, <code>hello_again.zig</code> demonstrates the use of <code>std.debug.print</code>. |
