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

doc: fix a formatting error in buffer.md #8553

Merged
merged 1 commit into from
Sep 17, 2016
Merged

Conversation

ChALkeR
Copy link
Member

@ChALkeR ChALkeR commented Sep 15, 2016

Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

Fixes an error in doc/api/buffer.md, (see the TypedArray.from() link).

It was treated as a link to "e.g. Uint8Array.from()".

Found with remark-lint (see #8551).

Extracted from #8551, as this could land much faster and should probably be backported if needed.

@ChALkeR ChALkeR added the doc Issues and PRs related to the documentations. label Sep 15, 2016
@nodejs-github-bot nodejs-github-bot added buffer Issues and PRs related to the buffer subsystem. doc Issues and PRs related to the documentations. labels Sep 15, 2016
@ChALkeR
Copy link
Member Author

ChALkeR commented Sep 15, 2016

Hold on, one Buffer.allocUnsafe() link is also broken in doc/api/buffer.md#class-method-bufferallocunsafesize.

@ChALkeR
Copy link
Member Author

ChALkeR commented Sep 15, 2016

Ok, updated. This now uses [name][] (other text) instead of [name] \(other text).
That looks cleaner and it's the syntax that is used in other places and was used here before cc1318b.

This basically reverts one change from cc1318b and fixes another change.

/cc @mscdex, @jasnell, @trevnorris

ChALkeR referenced this pull request Sep 15, 2016
This commit adds more links and reuses existing link references more.

PR-URL: #7784
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@mscdex
Copy link
Contributor

mscdex commented Sep 15, 2016

I think I'd rather see the 'e.g' portion removed from the first instance and dropping the parens in the second instance.

@ChALkeR
Copy link
Member Author

ChALkeR commented Sep 15, 2016

@mscdex You mean removing «(e.g. Uint8Array.from())» completely in the first one?

@mscdex
Copy link
Contributor

mscdex commented Sep 15, 2016

@ChALkeR Yeah, I think it's a bit redundant anyway, especially since we've already linked TypedArray.

@ChALkeR
Copy link
Member Author

ChALkeR commented Sep 15, 2016

@mscdex Done =).

@mscdex
Copy link
Contributor

mscdex commented Sep 15, 2016

LGTM

@ChALkeR
Copy link
Member Author

ChALkeR commented Sep 16, 2016

/cc @nodejs/documentation, this should be trivial.

Copy link
Member

@lpinca lpinca left a comment

Choose a reason for hiding this comment

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

LGTM

@bengl
Copy link
Member

bengl commented Sep 17, 2016

LGTM

1 similar comment
@trevnorris
Copy link
Contributor

LGTM

It was treated as a link to "e.g. `Uint8Array.from()`".

PR-URL: nodejs#8553
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@ChALkeR
Copy link
Member Author

ChALkeR commented Sep 17, 2016

Merged in ffe8dff.

Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
It was treated as a link to "e.g. `Uint8Array.from()`".

PR-URL: #8553
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buffer Issues and PRs related to the buffer subsystem. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants