-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Removed grammatical mistakes from paragraph 'Here is where regular e… #997
Conversation
| Regular expressions are a simple yet comprehensive language for defining string patterns. | ||
| Combined with a mechanism for string substitution, regular expressions are a powerful tool for text processing. | ||
| In fact, they are considered so useful that a number of languages provide built-in support | ||
| for them. However, built-in support does $(I not) necessarily imply $(I faster) processing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the italics on lines 20/22 add anything to the doc. IMO, the emphasis the italics provide makes the sentence read a bit oddly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I agree. They don't really add anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is consensus, let's remove them and merge?
|
Along with my comment on the diff, this should probably be a pull on the Phobos repo (this file) so documentation generated from in-code docs is correct. I imagine that the docs in this repo are autogenerated from the source code, so changing the documentation comments in the Phobos repo will update the docs in here on the next release. |
|
Along with my comment on the diff, this should probably be a pull on the I don't get this bit (yet). I'm new to PRs. On Tue, May 19, 2015 at 4:28 PM, Liam McSherry notifications@github.com
|
|
The Phobos repository contains the source code for D's standard library. D supports, in its source code, documentation comments. For example: /**
* Multiplies a number by four.
*
* Params:
* number = The number to quadruple.
*
* Returns:
* The provided number multiplied by four.
*/
auto quadruple(int number)
{
return number * 4;
}From these in-code comments, you can then generate documentation (like that on the D website, and in this repository). Because the documentation is generated from the source code, the change needs to be made to the source code, otherwise regenerating the documentation would overwrite the change with the old text. To make the change to the source code, you'll need to pull the Phobos repository and change the documentation in the |
|
I understand that the documentation is generated from the Phobos source On Tue, May 19, 2015 at 4:55 PM, Liam McSherry notifications@github.com
|
No. This pull request changes: http://dlang.org/regular-expression.html This is a dlang.org article that stands separately from the Phobos module documentation: http://dlang.org/phobos/std_regex.html |
|
Thanks for clarifying this, Vladimir. I was already wondering. On Tue, May 19, 2015 at 5:09 PM, Vladimir Panteleev <
|
Whoops, didn't see that. My mistake, I thought this was a change to the docs rather than an article. |
Removed grammatical mistakes from paragraph 'Here is where regular e…
…xpressions'.
Made some minor stylistic changes and also changed bold font to italic font (admittedly a matter of taste).