Fix syntax errors and obvious compile errors in README#153
Fix syntax errors and obvious compile errors in README#153sternenseemann wants to merge 1 commit intozetzit:masterfrom
Conversation
README.md
Outdated
| } | ||
|
|
||
| fn rng(Random *self) u32 { | ||
| fn rng(Random *self) -> u32 { |
There was a problem hiding this comment.
the syntax for this has changed to remove the -> (golang style)
its just not disallowed yet.
There was a problem hiding this comment.
Without the ->, the examples don't compile with zz 0.1 at the moment though.
There was a problem hiding this comment.
oh right. i should probably make http://bin.zetz.it/ more useful, and remove the github release to avoid confusion
There was a problem hiding this comment.
http://bin.zetz.it/ now has less terrible sorting. please use the latest build from there
There was a problem hiding this comment.
do you still intend to fix those?
There was a problem hiding this comment.
I've pushed the amends I've made locally, but I'm not too motivated to compile every example manually again. I also don't know how to fix some examples (like the one with closures (#152) and the preprocessor one). Also #157 currently prevents me from building anything with dependencies.
You should be able to push to this branch, so maybe you can fix up the remainder.
This should improve documentation somewhat as the examples actually work after being copy pasted. Note that the example for closures isn't fixed in this commit as I couldn't figure out how to fix it yet. See zetzit#152.
f47be23 to
9698df2
Compare
This should improve documentation somewhat as the examples actually work
after being copy pasted.
Note that the example for closures isn't fixed in this commit as I
couldn't figure out how to fix it yet. See #152.