Skip to content

Conversation

mfwitten
Copy link
Contributor

@mfwitten mfwitten commented Sep 29, 2025

This is a merge commit to bundle trivial changes:

* [This Commit]
|\
| * trivial: s/a/the/
| * trivial: Move a code comment (//...) to the line above the code
| * trivial: s/f/f2/
|/
* d40a490d485a647172eb8e615f293b525de68b7d

A comment in a code example was intended to refer to a function named "f2",
but the comment uses the name "f" instead, presumably because the code was
copied from the previous example; this commit fixes the typo.
…isocpp#2288)

This matches the way the previous, related code example is written,
a fact you can observe more readily by reviewing the patch of this
commit with larger context:

    git diff -U19

Specifically, the previous example looks like this:

    // bad: the number of elements is not passed to f()
    f(new int[n]);
While "a wrong number can be passed" makes sense (and there are perhaps
good philosophical reasons to prefer it), I believe that the more natural
way to say it in common English is "the wrong number can be passed"; thus,
this commit changes "a" to "the" in the comment of a code example.
…and fix a typo: "f" to "f2" (isocpp#2288)

This is a merge commit to bundle trivial changes:

    * [This Commit]
    |\
    | * trivial: s/a/the/
    | * trivial: Move a code comment (//...) to the line above the code
    | * trivial: s/f/f2/
    |/
    * d40a490
@mfwitten mfwitten force-pushed the typos/0001-f2/latest branch from 292fc15 to 25c6708 Compare September 29, 2025 04:04
@mfwitten mfwitten changed the title copyedit: Move a comment for consistency, change "a" to "the", and fix a typo: "f" to "f2" [P.6] copyedit: Move a comment for consistency, change "a" to "the", and fix a typo: "f" to "f2" Sep 29, 2025
@mfwitten
Copy link
Contributor Author

mfwitten commented Sep 29, 2025

I force-pushed a new set of commits, so as to make 2 changes:

  • Rebase onto latest master.
  • Add [P.6] and (#2288) to the subject line of each commit.

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.

1 participant