Skip to content
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

Fixed minor documentation errors #1256

Merged
merged 1 commit into from Jul 18, 2018
Merged

Conversation

jayschwa
Copy link
Sponsor Contributor

@jayschwa jayschwa commented Jul 18, 2018

Changed:

  • "retuns" to "returns"
  • "null-terminated pointers" to "pointers to null-terminated arrays"

@@ -1483,7 +1483,7 @@ test "pointer array access" {
}

test "pointer slicing" {
// In Zig, we prefer using slices over null-terminated pointers.
// In Zig, we prefer using slices over null-terminated arrays.
Copy link
Member

Choose a reason for hiding this comment

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

how about "slices instead of pointers to null-terminated arrays"

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

Implemented. I also removed "using" for brevity.

Changed:
- "retuns" to "returns"
- "null-terminated pointers" to "pointers to null-terminated arrays"
@andrewrk andrewrk merged commit 6394f7e into ziglang:master Jul 18, 2018
@jayschwa jayschwa deleted the fix-docs branch August 30, 2018 01:39
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.

None yet

2 participants