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

Removed grammatical mistakes from paragraph 'Here is where regular e… #997

Merged
merged 2 commits into from
Jun 17, 2015

Conversation

Doado
Copy link
Contributor

@Doado Doado commented May 19, 2015

…xpressions'.

Made some minor stylistic changes and also changed bold font to italic font (admittedly a matter of taste).

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

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.

Copy link
Contributor Author

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.

Copy link
Member

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?

@McSherry
Copy link

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.

@Doado
Copy link
Contributor Author

Doado commented May 19, 2015

Along with my comment on the diff, this should probably be a pull on the
Phobos repo (this file
https://github.com/D-Programming-Language/phobos/blob/master/std/regex/package.d)
so documentation generated from in-code docs are correct.

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
wrote:

Along with my comment on the diff, this should probably be a pull on the
Phobos repo (this file
https://github.com/D-Programming-Language/phobos/blob/master/std/regex/package.d)
so documentation generated from in-code docs are 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.


Reply to this email directly or view it on GitHub
#997 (comment)
.

@McSherry
Copy link

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 std\regex\package.d file. Then, when the documentation is next generated from the source code, your change will be there.

@Doado
Copy link
Contributor Author

Doado commented May 19, 2015

I understand that the documentation is generated from the Phobos source
files with ddoc. But I don't understand why a change to a page that is not
in Phobos (or any other library doc), in this case
http://dlang.org/regular-expression.html, needs to be pulled in Phobos.

On Tue, May 19, 2015 at 4:55 PM, Liam McSherry notifications@github.com
wrote:

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
https://github.com/D-Programming-Language/phobos/ repository and change
the documentation in the std\regex\package.d file. Then, when the
documentation is next generated from the source code, your change will be
there.


Reply to this email directly or view it on GitHub
#997 (comment)
.

@CyberShadow
Copy link
Member

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.

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
http://dlang.org/library/std/regex.html

@Doado
Copy link
Contributor Author

Doado commented May 19, 2015

Thanks for clarifying this, Vladimir. I was already wondering.

On Tue, May 19, 2015 at 5:09 PM, Vladimir Panteleev <
notifications@github.com> wrote:

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.

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
http://dlang.org/library/std/regex.html


Reply to this email directly or view it on GitHub
#997 (comment)
.

@McSherry
Copy link

No.

This pull request changes:

http://dlang.org/regular-expression.html

Whoops, didn't see that. My mistake, I thought this was a change to the docs rather than an article.

CyberShadow added a commit that referenced this pull request Jun 17, 2015
Removed grammatical mistakes from  paragraph 'Here is where regular e…
@CyberShadow CyberShadow merged commit 4264468 into dlang:master Jun 17, 2015
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.

3 participants