8000 Several minor documentation fixes (Part 2) by zawlazaw · Pull Request #6495 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Several minor documentation fixes (Part 2) #6495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 29, 2022

Conversation

zawlazaw
Copy link
Contributor

This PR is a follow-up of #6437 and fixes several minor issues in the documentation of ZIO v2.x. In order to avoid too big PRs, this PR focuses only on the Sections Data Types / Concurrency / {ZIO Fibers, Concurrency Primitives}. After this PR is merged, I would continue with the next sections in a similar way.

  • fixed several tiny typos, errors and formatting issues
  • propose alternative formulations for some sentences that sounded wrong or clumsy to me (please review these changes carefully, since I am not a native speaker)
  • there was an issue with the three documentation URLs /next/datatypes/fiber/ and /next/datatypes/stm/ and /next/datatypes/stream/. To each of these URLs, two different Markdown files were mapped on them, namely, the introduction text (index.md) as well as the respective content file with the same name as its directory (fiber.md, stm.md, stream.md, respectively). This led to the fact that only one of both respective pages, either the introduction or the content page, was publically available, but not both (!), while the navigation bar highlights both of them. These URLs are now de-duplicated for v2.x by explicitly setting the URLs of the content-pages (via docusaurus' slug) to xxx.md, thus, for example, /next/datatypes/fiber/ now always serves the introduction, while /next/datatypes/fiber/fiber.md serves the content-page. By choosing the xxx.md slug, we don't need to modify any documentation-internal links to this page. Note that this fix brings up now three new pages that were not publically visible before (!)
  • the example in fiberref#inheritrefs claimed that two specific effects behave identically, which was not true, since the inheritRefs variant sometimes fails the assertion, since due to race conditions it sometimes merges the FiberRef's value before it is set from 0 to 10 by the child fiber. These examples were modified to point out the main difference between join and inheritRefs, namely, that join waits and merges final values, while inheritRefs merges current values and continues.

As before, please review the details, but also tell me if you disagree with some general attitude of this PR, so that I can adapt to your feedback (e.g. I might be too picky on inserting articles a and the here and there).

Copy link
Contributor
@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🙏

@adamgfraser adamgfraser merged commit 975a60f into zio:series/2.x Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0