Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nix-bindings-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub enum NixError {
/// An generic Nix error.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Grammatical error in comment.

The article should be "A" instead of "An" before "generic" (consonant sound).

📝 Proposed fix
-    /// An generic Nix error.
+    /// A generic Nix error.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/// An generic Nix error.
/// A generic Nix error.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nix-bindings-util/src/lib.rs` at line 115, Fix the grammatical article in the
doc comment that currently reads "/// An generic Nix error." — change it to "///
A generic Nix error." by updating the doc comment immediately above the Nix
error type/definition so the comment uses "A" instead of "An".

///
/// See [`err_NIX_ERR_NIX_ERROR`](raw::err_NIX_ERR_NIX_ERROR) for more info.
#[error("a generic Nix error occurred: {0}")]
#[error("{0}")]
Nix(String),
/// An unknown error code that is not (yet) handled by this crate.
#[error("unknown error code {code}: {msg}")]
Expand Down
Loading