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

docs: Minor fixes and typos #4564

Merged
merged 1 commit into from
Dec 19, 2024
Merged
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
2 changes: 1 addition & 1 deletion docs/dev/Build_Profiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ These are instructions for profiling the build process of OpenImageIO --
useful for figuring out where the build process is spending its time, and
where it might be optimized.

## Profiling module compilating with clang -ftime-trace
## Profiling module compilation with clang -ftime-trace

These instructions are based on the following references:

Expand Down
6 changes: 5 additions & 1 deletion docs/dev/CodeReview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- SPDX-License-Identifier: CC-BY-4.0 -->
<!-- Copyright Contributors to the OpenImageIO Project. -->


Code Review Procedures
======================

Expand Down Expand Up @@ -131,7 +135,7 @@ stakeholders. These include:
critical cases.
- *Compatibility breaks*: changes that propose to break backward API
compatibility with existing code or data files, or that change the required
toolchain or depeendencies needed to build the project.
toolchain or dependencies needed to build the project.
- *Security*: Changes that could introduce security vulnerabilities, or that
fix tricky security issues where the best fix is not obvious.

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ having CC prefixes in as many commit messages possible helps make the release
notes process be simpler and more automated.

We have been using the [git-cliff](https://github.com/orhun/git-cliff) tool
as the starting point for relese notes. The command we use is:
as the starting point for release notes. The command we use is:

git cliff -c src/doc/cliff.toml -d v1.2.3.4..HEAD > cliff.out.md

Expand Down
2 changes: 1 addition & 1 deletion src/doc/oiiointro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ different formats, comparing image data between two images, and examining
image metadata.

All of this is released as "open source" software using the very permissive
"BSD 3-clause" license. So you should feel free to use any or all of
"Apache-2.0" license. So you should feel free to use any or all of
OpenImageIO in your own software, whether it is private or public, open
source or proprietary, free or commercial. You may also modify it on your
own. You are encouraged to contribute to the continued development of
Expand Down
8 changes: 4 additions & 4 deletions src/include/OpenImageIO/strutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -980,15 +980,15 @@ bool OIIO_UTIL_API parse_int (string_view &str, int &val, bool eat=true) noexcep
bool OIIO_UTIL_API parse_float (string_view &str, float &val, bool eat=true) noexcept;

/// Synonym for parse_int
inline bool parse_value(string_view &str, float &val, bool eat=true) noexcept
inline bool parse_value(string_view &str, int &val, bool eat=true) noexcept
{
return parse_float(str, val, eat);
return parse_int(str, val, eat);
}

/// Synonym for parse_float
inline bool parse_value(string_view &str, int &val, bool eat=true) noexcept
inline bool parse_value(string_view &str, float &val, bool eat=true) noexcept
{
return parse_int(str, val, eat);
return parse_float(str, val, eat);
}

/// Parse from `str`: a `prefix`, a series of int values separated by the
Expand Down
Loading