Commit 6d0283e6bc

Motiejus Jakštys <motiejus@jakstys.lt>
2022-04-21 20:33:42
[doc update] add size_t (#11482)
For those souls looking for a zig `size_t` equivalent, and not lucky/educated enough (that was me yesterday) to know it's the same as `uintptr_t`. From a recent discussion on IRC.
1 parent 42ed34d
Changed files (1)
doc/langref.html.in
@@ -672,8 +672,8 @@ pub fn main() void {
         </tr>
         <tr>
             <th scope="row">{#syntax#}usize{#endsyntax#}</th>
-          <td><code class="c">uintptr_t</code></td>
-          <td>unsigned pointer sized integer</td>
+          <td><code class="c">uintptr_t</code>, <code class="c">size_t</code></td>
+          <td>unsigned pointer sized integer. Also see <a href="https://github.com/ziglang/zig/issues/5185">#5185</a></td>
         </tr>
 
         <tr>