Skip to content

docs: fix typos in flutter_tools comments#186321

Open
Nicoreia wants to merge 1 commit into
flutter:masterfrom
Nicoreia:docs/fix-typos-flutter-tools-comments
Open

docs: fix typos in flutter_tools comments#186321
Nicoreia wants to merge 1 commit into
flutter:masterfrom
Nicoreia:docs/fix-typos-flutter-tools-comments

Conversation

@Nicoreia
Copy link
Copy Markdown
Contributor

Summary

Fixes a handful of single-word typos found in /// dartdoc and // inline comments inside flutter_tools. Comment-only — no public API, no behavior, no test logic touched.

Changes

  • packages/flutter_tools/lib/src/android/gradle_utils.dart
    • space sytax -> space syntax
    • This vesion is NOT -> This version is NOT
    • dynamiclly added -> dynamically added
    • gradle can run successfuly -> gradle can run successfully
    • Documenation is non continuous -> Documentation is non continuous (2 occurrences)
    • KGP version handling is prefered -> KGP version handling is preferred (2 occurrences)
  • packages/flutter_tools/lib/src/features.dart
    • dartdoc: Wether riscv64 support is enabled -> Whether riscv64 support is enabled
    • inline: This member is overriden in google3 -> This member is overridden in google3
  • packages/flutter_tools/lib/src/linux/linux_doctor.dart
    • dartdoc: Requires tha [binary] -> Requires that [binary]

Tests

No tests added or modified. The change does not touch any executable line. Verified locally by re-grepping the modified files for residual instances of each typo — none remain.

Notes for maintainers

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene page and followed its process for submitting this PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.

(sytax, vesion, dynamiclly, successfuly, Documenation, prefered, Wether,
overriden, tha). Comment-only; no semantic or behavior changes.

Affected files:
- packages/flutter_tools/lib/src/android/gradle_utils.dart (8 fixes)
- packages/flutter_tools/lib/src/features.dart (2 fixes)
- packages/flutter_tools/lib/src/linux/linux_doctor.dart (1 fix)
@Nicoreia Nicoreia requested review from a team as code owners May 10, 2026 18:37
@Nicoreia Nicoreia requested review from jesswrd and removed request for a team May 10, 2026 18:37
@github-actions github-actions Bot added tool Affects the "flutter" command-line tool. See also t: labels. platform-linux Building on or for Linux specifically a: desktop Running on desktop team-android Owned by Android platform team team-linux Owned by the Linux platform team labels May 10, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request fixes several typos in the documentation comments within the Flutter tools package. The review feedback identifies further opportunities to improve comment readability and grammar, such as capitalizing proper nouns like 'Flutter' and 'KGP', hyphenating compound adjectives, and using semicolons to correct comma splices.

Comment on lines +424 to +425
// Instead the kgpVersion task is a custom flutter task dynamically added that can
// print the kgp version if gradle can run successfully.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Adding a comma after the introductory word "Instead" improves readability. Additionally, "Flutter" and "KGP" should be capitalized as they are proper nouns, consistent with their usage elsewhere in the codebase.

Suggested change
// Instead the kgpVersion task is a custom flutter task dynamically added that can
// print the kgp version if gradle can run successfully.
// Instead, the kgpVersion task is a custom Flutter task dynamically added that can
// print the KGP version if gradle can run successfully.
References
  1. Optimize for readability: Code is read more often than it is written. (link)


// https://kotlinlang.org/docs/gradle-configure-project.html#apply-the-plugin
// Documenation is non continuous, past versions are known to the
// Documentation is non continuous, past versions are known to the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The compound adjective "non-continuous" should be hyphenated. Also, replacing the comma with a semicolon fixes a comma splice, improving grammatical correctness and readability.

Suggested change
// Documentation is non continuous, past versions are known to the
// Documentation is non-continuous; past versions are known to the
References
  1. Optimize for readability: Code is read more often than it is written. (link)


// https://kotlinlang.org/docs/gradle-configure-project.html#apply-the-plugin
// Documenation is non continuous, past versions are known to the
// Documentation is non continuous, past versions are known to the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The compound adjective "non-continuous" should be hyphenated. Also, replacing the comma with a semicolon fixes a comma splice, improving grammatical correctness and readability.

Suggested change
// Documentation is non continuous, past versions are known to the
// Documentation is non-continuous; past versions are known to the
References
  1. Optimize for readability: Code is read more often than it is written. (link)

Copy link
Copy Markdown
Contributor

@robert-ancell robert-ancell left a comment

Choose a reason for hiding this comment

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

Thanks!

@robert-ancell robert-ancell enabled auto-merge May 10, 2026 19:21
@robert-ancell
Copy link
Copy Markdown
Contributor

The Gemini suggestions do also seem good, but they can be in a follow up PR if someone is interested in making it.

@victorsanni victorsanni added the CICD Run CI/CD label May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: desktop Running on desktop CICD Run CI/CD platform-linux Building on or for Linux specifically team-android Owned by Android platform team team-linux Owned by the Linux platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants