summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilippe Pittoli <kane.root@gmail.com>2022-01-08 11:17:52 +0100
committerGitHub <noreply@github.com>2022-01-08 11:17:52 +0100
commitdaace78911f19e452acf09919015dd49c953a006 (patch)
tree38576d174e032482870d1922bbef953f3b144b6a
parent077c01cdf358e8d832c0ac720744e061e276c815 (diff)
[zig/en] rephrasing the sentence on raw pointers.
-rw-r--r--zig.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/zig.html.markdown b/zig.html.markdown
index 3825e0b4..814f4bda 100644
--- a/zig.html.markdown
+++ b/zig.html.markdown
@@ -24,7 +24,7 @@ Prior knowledge of C is recommended.
- Zig introduces namespaces.
- Try and catch mechanism, which is both convenient, efficient and optional.
- Most of the C undefined behaviors (UBs) are fixed.
-- Raw pointers are safer to use and aren't nearly as used as before.
+- Compared to C, raw pointers are safer to use and less likely to be needed.
* The type system distinguishes between a pointer to a single value, or multiple values, etc.
* Slices are preferred, which is a structure with a pointer and a runtime known size, which characterizes most uses of pointers in the first place.
- Some arbitrary language limitations are removed. For example, enumerations, structures and unions can have functions.