aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-12-13 21:53:52 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-12-13 21:53:52 -0500
commitf55fdc00fcde3cd17ed0ddb94c0997c882dbe6b9 (patch)
tree911f875f15548275274e6811464850e3191b06b1 /doc
parent84619abe9f16bc030c5bdb888f47a9b49b87c2ff (diff)
downloadzig-f55fdc00fcde3cd17ed0ddb94c0997c882dbe6b9.tar.gz
zig-f55fdc00fcde3cd17ed0ddb94c0997c882dbe6b9.zip
fix const and volatile qualifiers being dropped sometimes
in the expression `&const a.b`, the const (and/or volatile) qualifiers would be incorrectly dropped. closes #655
Diffstat (limited to 'doc')
-rw-r--r--doc/docgen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/docgen.zig b/doc/docgen.zig
index 81febb074e..bec12d98b7 100644
--- a/doc/docgen.zig
+++ b/doc/docgen.zig
@@ -42,7 +42,7 @@ const State = enum {
// TODO look for code segments
-fn gen(in: &io.InStream, out: &const io.OutStream) {
+fn gen(in: &io.InStream, out: &io.OutStream) {
var state = State.Start;
while (true) {
const byte = in.readByte() %% |err| {