Thread (380 messages) 380 messages, 13 authors, 2026-07-24

Re: [PATCH v9 1/8] git-compat-util: add strtoul_ul() with error handling

From: Christian Couder <hidden>
Date: 2025-01-10 11:33:42

On Wed, Jan 8, 2025 at 7:38 PM Eric Ju [off-list ref] wrote:
+// Converts a string to an unsigned long using the standard library's strtoul,
+// with additional error handling to ensure robustness.
We use comments like this:

/*
 * Converts a string to an unsigned long using the standard library's strtoul,
 * with additional error handling to ensure robustness.
 */

Also we use the imperative mood in comments before a function, so:

s/Converts/Convert/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help