Fix errors from rst linting on the generated docs

This commit is contained in:
Tim Wojtulewicz 2025-01-24 11:31:26 -07:00
parent fdf887ce3b
commit c1a8f8b763
15 changed files with 67 additions and 65 deletions

View file

@ -6,7 +6,7 @@ module Exec;
export {
type Command: record {
## The command line to execute. Use care to avoid injection
## The command line to execute. Use care to avoid injection
## attacks (i.e., if the command uses untrusted/variable data,
## sanitize it with :zeek:see:`safe_shell_quote`).
cmd: string;
@ -34,10 +34,10 @@ export {
};
## Function for running command line programs and getting
## output. This is an asynchronous function which is meant
## to be run with the `when` statement.
## output. This is an asynchronous function which is meant
## to be run with the ``when`` statement.
##
## cmd: The command to run. Use care to avoid injection attacks!
## cmd: The command to run. Use care to avoid injection attacks!
##
## Returns: A record representing the full results from the
## external program execution.

View file

@ -2,9 +2,9 @@
##
## s: The string to search for a number.
##
## get_first: Provide `F` if you would like the last number found.
## get_first: Provide ``F`` if you would like the last number found.
##
## Returns: The request integer from the given string or 0 if
## Returns: The request integer from the given string or ``0`` if
## no integer was found.
function extract_count(s: string, get_first: bool &default=T): count
{