Skip to content

Conversation

@zealsham
Copy link
Contributor

@zealsham zealsham commented Nov 2, 2021

A comment in bdb.h file in the wallet directory contains a grammatical error that makes the underlying code harder to reason about .
The comment which says /** Indicate the a new database user has began using the database. */ should actually be
/** indicate that a new database user has began using the database. */. The former is quite confusing , and leaves you wondering what "the a new database user " is refering to . This pull request thus provides value to the bitcoin codebase by improving readability .

@DrahtBot DrahtBot added the Wallet label Nov 2, 2021
@b3h3rkz
Copy link

b3h3rkz commented Nov 2, 2021

Good catch!

Copy link
Contributor

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

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

While this is a grammatical error, PR's like this can be seen as spam. I'd advice that as a new contributor you get started on Good First Issues and read up on CONTRIBUTING.md

src/wallet/bdb.h Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

If you're going to take fix grammar, then technically this should be changed as well

Suggested change
/** Indicate that a new database user has began using the database. */
/** Indicate that a new database user has begun using the database. */

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Their is a subtle difference , correcting “began” to “begun” really does not impact how you understand the underlying code . “The a new database” makes it looks like their is a class or method called “the a new database “

Copy link
Contributor

Choose a reason for hiding this comment

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

Regarding changing began to begun, AFAIK it is more so about not having to open a future PR to address the grammar in this comment again. Hence, I'd suggest you tackle it all in this PR.

@DrahtBot
Copy link
Contributor

DrahtBot commented Nov 2, 2021

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #20096 (wallet: Remove WalletDatabase refcounting and enforce only one Batch access the database at a time by achow101)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Copy link
Contributor

@Zero-1729 Zero-1729 left a comment

Choose a reason for hiding this comment

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

Concept ACK

Might I also suggest renaming the PR title to something more specific, perhaps 'wallet: fixed comment grammar in bdb.h'.

@laanwj
Copy link
Member

laanwj commented Nov 8, 2021

While this is a grammatical error, PR's like this can be seen as spam. I'd advice that as a new contributor you get started on Good First Issues and read up on CONTRIBUTING.md

Yes. Thanks for trying to contribute, but there's significant overhead in the discussion of PRs, so using them to discuss a single-word change is wasteful. If you want more appreciation for your work I'd recommend looking into fixing bugs and other open issues instead of comment minutea.

That said, as this does fix the interpretation of the sentence (and is not just an obvious typo), I'm leaving this open.

@maflcko
Copy link
Member

maflcko commented Nov 8, 2021

Please also fix the other typo. Otherwise we'll have to deal with another pull request touching the same line soon

@laanwj laanwj changed the title wallet: Fixed Grammatical error in bdb.h wallet: Fix comment grammar in bdb.h Nov 8, 2021
@fanquake
Copy link
Member

fanquake commented Nov 8, 2021

Please squash your commits.

@zealsham
Copy link
Contributor Author

zealsham commented Nov 8, 2021

Applied the fixes as suggested . Thanks everyone

@maflcko
Copy link
Member

maflcko commented Nov 9, 2021

Wallet: Fixed Grammatical error  in bdb.h
@zealsham
Copy link
Contributor Author

zealsham commented Nov 9, 2021

commit has been squashed as said .

@laanwj laanwj merged commit 55dd385 into bitcoin:master Nov 9, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 9, 2021
bd9c6ad wallet: Fixed Grammatical error in bdb.h (zealsham)

Pull request description:

  A comment in bdb.h file in the wallet directory contains a grammatical error that makes the underlying code harder to reason about .
  The comment which says `/** Indicate the a new database user has began using the database. */` should actually be
  `/** indicate that a new database user has began using the database. */`. The former is quite confusing , and leaves you wondering what "the a new database user " is refering to . This pull request thus provides value to the bitcoin codebase by improving readability .

Top commit has no ACKs.

Tree-SHA512: db07cda39f89ac344be3497c884a8c6e4b48276afae18e931a9a8e5732c58eed20645ccd18d6b1212c763f64b1300477c1de26a00b5b3b24e6141ffae3658ca7
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Apr 3, 2022
bd9c6ad wallet: Fixed Grammatical error in bdb.h (zealsham)

Pull request description:

  A comment in bdb.h file in the wallet directory contains a grammatical error that makes the underlying code harder to reason about .
  The comment which says `/** Indicate the a new database user has began using the database. */` should actually be
  `/** indicate that a new database user has began using the database. */`. The former is quite confusing , and leaves you wondering what "the a new database user " is refering to . This pull request thus provides value to the bitcoin codebase by improving readability .

Top commit has no ACKs.

Tree-SHA512: db07cda39f89ac344be3497c884a8c6e4b48276afae18e931a9a8e5732c58eed20645ccd18d6b1212c763f64b1300477c1de26a00b5b3b24e6141ffae3658ca7
@bitcoin bitcoin locked and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants