aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
2020-07-13Merge pull request #5831 from paulespinosa/langref-hello-world-moreAndrew Kelley
Explain Language Ref's Hello World
2020-07-13Use Writer for Language Reference Hello World ExamplePaul Espinosa
`OutStream` has been deprecated, so the "Hello, World!" example has been updated to use `Writer`.
2020-07-12update compile error tests and some doc commentsVexu
2020-07-11add 'anytype' to stage1 and langrefVexu
2020-07-11Introduce Error Union and Use WriterPaul Espinosa
This commit edits the "Hello, World!" introduction. It introduces Error Union Types. Also, it changes `outStream` to `writer` in the code example and description.
2020-07-11Update doc/langref.html.inPaul
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
2020-07-11Update doc/langref.html.inPaul
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
2020-07-11Update doc/langref.html.inPaul
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
2020-07-11Update doc/langref.html.inPaul
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
2020-07-09Explain Language Ref's Hello WorldPaul Espinosa
To introduce the Zig programming language, the "Hello, world!" code sample now has documentation to explain some of the features shown in the code sample and contains links to those features in the rest of the documentation. Writing style goals: * Balance writing style to keep beginner and experience programmers interested. * Be concise: allow the rest of the documentation to clarify language features.
2020-07-09langref: Expand "if error union with optional" test caseRyan Liptak
Follow-up to #5818, closes #5819
2020-07-08ci: check langref.html for html errorsxackus
2020-07-08langref: Add test case for "if error union with optional"Ryan Liptak
This is an edge case that isn't too uncommon but is rather confusing to try to deduce without documentation, since it feels like `else` is being overloaded in this scenario and there's no obvious 'correct' behavior here. This just adds a test demonstrating how Zig currently behaves in this scenario.
2020-07-08Rename langref's Index to Contents (TOC)Paul Espinosa
The language reference's Index is a list of the documentation's contents in order of appearance. This commit renames "Index" to "Contents" as in table of contents. It also renames the HTML/CSS identifiers from "index" to "toc".
2020-07-05update more HashMap API usageAndrew Kelley
2020-07-01Add documentation for @src() builtinChris Watson
2020-07-01in docs removed "path can be absolute" for importsCodeMyst
2020-06-24Updated @asyncCall docsAlexandros Naskos
2020-06-23Refactor PreopenList.find()Jakub Konka
This commit generalizes `std.fs.wasi.PreopenList.find(...)` allowing search by `std.fs.wasi.PreopenType` union type rather than by dir name. In the future releases of WASI, it is expected to have more preopen types (or capabilities) than just directories. This commit aligns itself with that vision. This is a potentially breaking change. However, since `std.fs.wasi.PreopenList` wasn't made part of any Zig release yet, I think we should be OK to introduce those changes without pointing to any deprecations.
2020-06-20langref - document that This works on enums tooSebastian
2020-06-19Replaced all occurrences of std.debug.warn in the docs with std.debug.printEleanor NB
2020-06-12Merge pull request #5589 from kubkon/preopens-exampleAndrew Kelley
Add doc example for extracting WASI preopens
2020-06-12Merge pull request #5595 from ifreund/doc-arraylist-fixVeikka Tuominen
docs: fix mention of deprecated ArrayList.span()
2020-06-12docs: fix mention of deprecated ArrayList.span()Isaac Freund
2020-06-11Add doc example for extracting WASI preopensJakub Konka
2020-06-09Update langref.html.inJakub Konka
2020-06-09Document the builtinsJakub Konka
2020-05-23update docgen to new ast APIAndrew Kelley
2020-05-16Merge pull request #5353 from Vexu/parserVexu
Self-hosted parser fixes
2020-05-15fix infinite loop with mismatced bracketVexu
2020-05-15Merge pull request #5336 from Vexu/parserVexu
Make self-hosted parser more error tolerant
2020-05-14remove useless nosuspend parsingVexu
nosuspend cannot be used in a type expression and all other use casesare covered by PrimaryExpr
2020-05-13Merge pull request #5254 from ifreund/top-level-struct-file-namesVexu
Apply naming conventions of structs to files
2020-05-10mem.eql need slice type熊鑫
2020-05-07Merge pull request #5268 from tadeokondrak/remove-callconv-redundant-syntaxAndrew Kelley
Remove syntax redundant with callconv
2020-05-05Remove reference to import type (#5279)Lann
* Remove reference to import type * Improve language in `@This()` doc
2020-05-05update docs/tests for async/extern fn removalTadeo Kondrak
2020-05-05remove nakedcc/stdcallcc/async fn/extern fn fnprotoTadeo Kondrak
2020-05-05Rename noasync to nosuspend in self-hosted, add rewriterTadeo Kondrak
2020-05-02Apply naming conventions of structs to filesIsaac Freund
2020-04-28Merge pull request #5196 from tadeokondrak/@vector-to-@type-vectorAndrew Kelley
`@Vector` -> `@Type(.Vector)`
2020-04-28Update language reference for std.meta.VectorTadeo Kondrak
2020-04-28Update language reference for recent @Type changesTadeo Kondrak
2020-04-13langref: add link to 0.6.0 versionAndrew Kelley
2020-04-12Update documentation of @panicSören Tempel
The default panic handler implementation was moved to `builtin.zig`.
2020-04-11clarify what "not valid" meansAndrew Kelley
2020-04-11add note about `@tagName` for non-exhaustive enumsemekoi
2020-04-09Update docgen to new ArrayList APIjoachimschmidt557
2020-04-08Update langref.html.inmarkfirmware
2020-04-07langref: small updatesxackus