aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
2020-12-09Fix operator precedence documentationMartin Wickham
2020-12-09langref: Update setEvalBranchQuota prototypeLemonBoy
2020-11-22update grammar in langrefVexu
2020-11-19Update code to not use unsupported calling conventions for targetTadeo Kondrak
2020-11-18std: make meta.IntType a compile errorxackus
the function signature changed also update langref
2020-11-11Fix backticked code in langrefJonas Carpay
2020-11-09Fix reduce documentationdata-man
2020-11-09langref: add 0.7.0 linkAndrew Kelley
2020-11-01langref tidy html fixupAndrew Kelley
2020-11-01docs: Add @reduce documentationLemonBoy
2020-10-30Merge pull request #6858 from travv0/no-star-after-dot-starVeikka Tuominen
don't allow a token starting with an asterisk directly following .*
2020-10-29stage1: Error out when trying to execute `unreachable`LemonBoy
Closes #6802
2020-10-29add missing Invalid_periodasterisks case in docgenTravis
2020-10-29Changed macosx to macos in support os to better relfect the output of zig ↵=
targets
2020-10-22Use std.testing.expect in language reference samplesPaul Espinosa
In this commit, the code samples in the language reference have been changed to use `std.testing.expect` rather than `std.debug.assert` when they are written in `test` code. This will teach Zig learners best practices when they write their own test code. Not all uses of `std.debug.assert` have been replaced. There are examples where using `assert` fits the context of the sample. Using `std.debug.assert` in test code can lead to errors if running tests in ReleaseFast mode. In ReleaseFast mode, the `unreachable` in `assert` is undefined behavior. It is possible that `assert` always causes `zig test` to pass thus possibly leading to incorrect test code outcomes. The goal is to prevent incorrect code from passing test cases. Closes #5836
2020-10-22Merge pull request #6744 from LemonBoy/intcast-vecAndrew Kelley
stage1: Implement `@intCast` between vectors
2020-10-20langref: fix equationsRocknest
2020-10-20Update langref errorsLemonBoy
2020-10-19Update Documentation to use -O insteadNathan Bourgeois
2020-10-16langref cleanupsAndrew Kelley
* move the opaque section to after struct, enum, union, and add hyperlinks * improve the introduction of the zig build system. don't link to the wiki. * update to the latest zig init-exe example code * rename headers to avoid redundant words such as "zig" * simplify example code
2020-10-16Add some basic examples for the Zig Build System.Nathan Michaels
2020-10-15docs: snake_case enums/unions in langref examplesIsaac Freund
This follows the accepted change to the style guide: https://github.com/ziglang/zig/issues/2101
2020-10-10Update WASI preopens doc section to use GPAJakub Konka
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-06langref: update for opaque {} syntaxTadeo Kondrak
2020-10-06Add opaque type syntaxTadeo Kondrak
2020-09-29Merge remote-tracking branch 'origin/master' into stage2-zig-ccAndrew Kelley
2020-09-29langref: use general purpose allocator in the wasi exampleAndrew Kelley
2020-09-26fix another round of regressions in this branchAndrew Kelley
* std.log: still print error messages in ReleaseSmall builds. - when start code gets an error code from main, it uses std.log.err to report the error. this resulted in a test failure because ReleaseSmall wasn't printing `error: TheErrorCode` when an error was returned from main. But that seems like it should keep working. So I changed the std.log defaults. I plan to follow this up with a proposal to change the names of and reduce the quantity of the log levels. * warning emitted when using -femit-h when using stage1 backend; fatal log message when using -femit-h with self-hosted backend (because the feature is not yet available) * fix double `test-cli` build steps in zig's build.zig * update docgen to use new CLI * translate-c uses `-x c` and generates a temporary basename with a `.h` extension. Otherwise clang reports an error. * --show-builtin implies -fno-emit-bin * restore the compile error for using an extern "c" function without putting -lc on the build line. we have to know about the libc dependency up front. * Fix ReleaseFast and ReleaseSmall getting swapped when passing the value to the stage1 backend. * correct the zig0 CLI usage text. * update test harness code to the new CLI.
2020-09-24Fix typo in documentationOgromny
2020-09-24docs: update implementation status for @Type()Isaac Freund
2020-09-21Merge remote-tracking branch 'origin/master' into stage2-zig-ccAndrew Kelley
2020-09-15Fix a typo.Nathan Michaels
2020-09-15update the zen of zigAndrew Kelley
2020-09-05Merge pull request #6246 from Vexu/fieldVeikka Tuominen
Remove deprecated fields on `type`
2020-09-04update rest of testsVexu
2020-09-04langref: atomic ops are allowed on pointersVexu
Closes #6217
2020-08-31zen of zig: reword the last one a little bitAndrew Kelley
2020-08-24Add "table-wrapper" divextrasharp
2020-08-24Make changesextrasharp
2020-08-24Add Keyword Reference sectionextrasharp
2020-08-17Merge pull request #6046 from heidezomp/std-log-scoped-part2Andrew Kelley
std.log: (breaking) remove scope parameter from logging functions
2020-08-14langref: fix html errorAndrew Kelley
thanks tidy
2020-08-13langref: explain why comptime_float cannot be divided by comptime_intMaks S
Co-authored-by: Andrew Kelley <andrew@ziglang.org> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2020-08-13std.log: update documentation and example for scoped loggingheidezomp
2020-08-12docs: Fix reference to General Purpose AllocatorJosias
2020-08-08std lib general purpose allocator: disable stack tracing on mipsAndrew Kelley
Sadly, trying to collect stack frames goes into an infinite loop on mips. This sets the default number of stack frames to collect to 0 on mips.
2020-08-08update langref in light of new general purpose allocatorAndrew Kelley
2020-07-27Add meta viewport to fix mobile rendering, add missing <code> blockAshok Gautham
Co-authored-by: Vexu <git@vexu.eu>
2020-07-16Vectors clarification in docsdata-man
2020-07-13Document top-level doc comments, per #2288.Nathan Michaels