diff options
author | Ori Bernstein <ori@eigenstate.org> | 2014-09-16 18:51:23 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2014-09-16 18:51:23 -0400 |
commit | 32695d586d8af9becd6bdcb0448d204e382a1f02 (patch) | |
tree | 05d1e670e5046df2df30b004b77c84700a1a4a09 /doc | |
parent | 8e97c355d09f2bb8fe71956369272ce513cef0d1 (diff) | |
download | mc-32695d586d8af9becd6bdcb0448d204e382a1f02.tar.gz |
Fix documentation for pointers.
We changed from '#' to '*' for pointers long ago. This updates
the language docs to match that.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lang.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lang.txt b/doc/lang.txt index 008c95a..26763f6 100644 --- a/doc/lang.txt +++ b/doc/lang.txt @@ -372,13 +372,13 @@ TABLE OF CONTENTS: x.name Member lookup x++ Postincrement x-- Postdecrement + x# Dereference x[e] Index x[from,to] Slice Precedence 12: ++x Preincrement --x Predecrement - *x Dereference &x Address !x Logical negation ~x Bitwise negation @@ -498,9 +498,9 @@ TABLE OF CONTENTS: slice array Pointers are, as expected, values that hold the address of - the pointed to value. They are declared by appending a '*' + the pointed to value. They are declared by appending a '#' to the type. Pointer arithmetic is not allowed. They are - declared by appending a '*' to the base type + declared by appending a '#' to the base type Arrays are a group of N values, where N is part of the type. Arrays of different sizes are incompatible. Arrays in @@ -512,7 +512,7 @@ TABLE OF CONTENTS: contents. They are declared by appending a '[,]' to the base type. - foo* type: pointer to foo + foo# type: pointer to foo foo[123] type: array of 123 foo foo[,] type: slice of foo |