From 9a986ce26fc80117c2e2c0a57fcf4209cd0e243c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:58:29 +0100 Subject: fix doc text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgeome.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libgeome.h') diff --git a/libgeome.h b/libgeome.h index 47a7243..e7bb2cd 100644 --- a/libgeome.h +++ b/libgeome.h @@ -76,9 +76,9 @@ enum libgeome_portability { LIBGEOME_PORTABLE, /** - * The user hsa specified that the is often + * The user has specified that the machine is often * on the move when in use and that it is - * useful to keep the locations updated with + * useful to keep the location updated with * short intervals */ LIBGEOME_MOBILE @@ -258,7 +258,7 @@ extern const char *const libgeome_default_geolocation_file; /** - * Create a basic initialisation for `struct libgeome_context` + * Create a basic initialisation of `struct libgeome_context` * * Note that the implementation will use `ctx_out->user_data` to store `procname` * there. It will not make a copy of `procname`, so `procname` must be valid while @@ -272,13 +272,13 @@ extern const char *const libgeome_default_geolocation_file; * @param ctx_out Structure to initialise * @param procname The name of the process, will be prefixed to all outputs * using the format `"%s: ", procname`. It may be a good idea - * to add prepend ": libgeome: " to make it clear that the + * to prepend ": libgeome: " to make it clear that the * output comes from libgeome */ void libgeome_basic_context(struct libgeome_context *ctx_out, const char *procname); /** - * Get the machine's partability class + * Get the machine's portability class * * @param ctx Library context * @param out Output parameter @@ -341,7 +341,7 @@ int libgeome_get_from_timezone(struct libgeome_context *ctx, struct libgeome_dat int libgeome_get_from_file(struct libgeome_context *ctx, struct libgeome_data *out, const char *path); /** - * Spawn a program and read it's standard output + * Spawn a program and read its standard output * to get the user's location data * * @param ctx Library context @@ -357,26 +357,26 @@ int libgeome_get_from_command(struct libgeome_context *ctx, struct libgeome_data unsigned int alarm_sec, const char *path, const char *const *argv); /** - * Spawn a program and read it's standard output + * Spawn a program and read its standard output * to get the user's location data * * `path` and elements of `argv` are subject to %-substitution * using the following rules: * * - The string is parsed from left to right - * - Any '%' trigger substitutation + * - Any '%' triggers substitution * - If the next character is not '%', the "%%" is replaced with a literal "%" - * - Otherwise the next character character must be '{' and '%' marks the beginning + * - Otherwise the next character must be '{' and '%' marks the beginning * of a %-pattern. * - Within a %-pattern "%%" is replaced with "%" and "%}" with "}", and no other * use of "%" is invalid (nested patterns are disallowed). - * - A %-pattern ends with the first other occurance of a '}' + * - A %-pattern ends with the next occurrence of a '}' * - Each %-pattern shall be on one of the two forms: * - "%%{%u:%s}", , * - "%%{!%u:%s}", , - * The if the first pattern is used the pattern is deleted and only replaced with + * If the first pattern is used the pattern is deleted and only replaced with * if `out->requested_data & ` is non-zero. - * The if the second pattern is used the pattern is deleted and only replaced with + * If the second pattern is used the pattern is deleted and only replaced with * if `out->requested_data & ` is zero. * must be positive. * @@ -395,7 +395,7 @@ int libgeome_get_from_patterned_command(struct libgeome_context *ctx, struct lib unsigned int alarm_sec, const char *path, const char *const *argv); /** - * Spawn a program and read it's standard output + * Spawn a program and read its standard output * to get the user's location data * * @param ctx Library context -- cgit v1.2.3-70-g09d2