diff options
| author | Paul <mrpaul@aestheticwisdom.com> | 2020-07-11 09:09:43 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-11 09:09:43 +0700 |
| commit | 656b640e79e8cd391a046bb69713bffc3e0ff7b3 (patch) | |
| tree | d5b4794df1160c2ef4308688ac52b5e989fbe424 | |
| parent | 5afa7f2545a5f350bbac4c9d9349a7fbbd8f0977 (diff) | |
| download | zig-656b640e79e8cd391a046bb69713bffc3e0ff7b3.tar.gz zig-656b640e79e8cd391a046bb69713bffc3e0ff7b3.zip | |
Update doc/langref.html.in
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
| -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 0f17f4c096..c84edbc6a2 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -312,7 +312,7 @@ pub fn main() !void { <p> In Zig, the standard output stream's <code>print</code> function is allowed to fail because it is actually a function defined for a generic output stream. Consider a generic output stream that - represents writing data to a file and the disk is full; a write to the file will fail. However, + 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 stream to fail. To avoid having to handle the failure case of printing to a standard output, you can use alternate functions: the <code>std.log</code> function for proper logging or the <code>std.debug.print</code> function. |
