authorgravatar for jay@jayschwa.netJay Petacat <jay@jayschwa.net> 2018-03-25 18:48:07-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2018-03-25 18:48:07-04:00
log3e836f5516c48bcfa16e0b630e53822af80d4b3b
tree36f0ca762e1330414967929586e0ad195dd19ade
parentaa2995ee395b2c1329a61513debcac6225fcb8a8
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

doc: fix typo and tighten wording in error sections

Changes: - Removed superfluous "when possible" - Fixed typo in "documentationt" - Added missing comma - Moved definition of error union type up to first sentence

1 files changed, 7 insertions(+), 8 deletions(-)

doc/langref.html.in+7-8
......@@ -2864,18 +2864,18 @@ const err = (error {FileNotFound}).FileNotFound;
28642864 assert to make sure the error value is in fact in the destination error set.
28652865 </p>
28662866 <p>
2867 The global error set should generally be avoided when possible, because it prevents
2868 the compiler from knowing what errors are possible at compile-time. Knowing
2869 the error set at compile-time is better for generated documentationt and for
2870 helpful error messages such as forgetting a possible error value in a {#link|switch#}.
2867 The global error set should generally be avoided because it prevents the
2868 compiler from knowing what errors are possible at compile-time. Knowing
2869 the error set at compile-time is better for generated documentation and
2870 helpful error messages, such as forgetting a possible error value in a {#link|switch#}.
28712871 </p>
28722872 {#header_close#}
28732873 {#header_close#}
28742874 {#header_open|Error Union Type#}
28752875 <p>
2876 Most of the time you will not find yourself using an error set type. Instead,
2877 likely you will be using the error union type. This is when you take an error set
2878 and a normal type, and create an error union with the <code>!</code> binary operator.
2876 An error set type and normal type can be combined with the <code>!<code>
2877 binary operator to form an error union type. You are likely to use an
2878 error union type more often than an error set type by itself.
28792879 </p>
28802880 <p>
28812881 Here is a function to parse a string into a 64-bit integer:
......@@ -6033,4 +6033,3 @@ hljs.registerLanguage("zig", function(t) {
60336033 </script>
60346034 </body>
60356035</html>
6036