Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typos #187

Merged
merged 1 commit into from
Jan 17, 2024
Merged

typos #187

Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/html/pacparser.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/man/man3/pacparser.3
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Parses the given PAC script string\&.
0 on failure and 1 on success\&.
.RE
.PP
Evaulates the given PAC script string in the JavaScript context created by pacparser_init\&.
Evaluates the given PAC script string in the JavaScript context created by pacparser_init\&.
.SS "int pacparser_parse_pac (const char *pacfile)"

.PP
Expand Down Expand Up @@ -156,7 +156,7 @@ Finds proxy for the given URL and Host\&.
.PP
\fBReturns:\fP
.RS 4
proxy string on sucess and NULL on error\&.
proxy string on success and NULL on error\&.
.RE
.PP
Finds proxy for the given URL and Host\&. This function should be called only after pacparser engine has been initialized (using pacparser_init) and pac script has been parsed (using pacparser_parse_pac_file or pacparser_parse_pac_string)\&.
Expand Down
2 changes: 1 addition & 1 deletion src/pac_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static const char *pacUtils =
" if (isGMT) {\n"
" argc--;\n"
" }\n"
" // function will work even without explict handling of this case\n"
" // function will work even without explicit handling of this case\n"
" if (argc == 1) {\n"
" var tmp = parseInt(arguments[0]);\n"
" if (isNaN(tmp)) {\n"
Expand Down
4 changes: 2 additions & 2 deletions src/pacparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,13 @@ pacparser_init()
"Could not evaluate pacUtils defined in pac_utils.h.");
return 0;
}
if (_debug()) print_error("DEBUG: Pacparser Initalized.\n");
if (_debug()) print_error("DEBUG: Pacparser Initialized.\n");
return 1;
}

// Parses the given PAC script string.
//
// Evaulates the given PAC script string in the JavaScript context created
// Evaluates the given PAC script string in the JavaScript context created
// by pacparser_init.
int // 0 (=Failure) or 1 (=Success)
pacparser_parse_pac_string(const char *script)
Expand Down
4 changes: 2 additions & 2 deletions src/pacparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int pacparser_parse_pac_file(const char *pacfile // PAC file to parse
/// @param pacstring PAC string to parse.
/// @returns 0 on failure and 1 on success.
///
/// Evaulates the given PAC script string in the JavaScript context created
/// Evaluates the given PAC script string in the JavaScript context created
/// by pacparser_init.
int pacparser_parse_pac_string(const char *pacstring // PAC string to parse
);
Expand All @@ -71,7 +71,7 @@ int pacparser_parse_pac(const char *pacfile // PAC file to parse
/// @brief Finds proxy for the given URL and Host.
/// @param url URL to find proxy for.
/// @param host Host part of the URL.
/// @returns proxy string on sucess and NULL on error.
/// @returns proxy string on success and NULL on error.
///
/// Finds proxy for the given URL and Host. This function should be called only
/// after pacparser engine has been initialized (using pacparser_init) and pac
Expand Down
2 changes: 1 addition & 1 deletion src/pymod/pacparser_py.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ py_pacparser_init(PyObject *self, PyObject *args)

// Parses the PAC script string.
//
// Evaulates the PAC script string in the JavaScript context created by
// Evaluates the PAC script string in the JavaScript context created by
// pacparser_init.
static PyObject * // 0 (=Failure) or 1 (=Success)
py_pacparser_parse_pac_string(PyObject *self, PyObject *args)
Expand Down
Loading