Skip to content

Commit

Permalink
Fix typos in comments and docstrings
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Jakub Fila <[email protected]>
  • Loading branch information
tmadlener and m-fila committed Sep 30, 2024
1 parent f6a6f63 commit 1c8061e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/podio/detail/Link.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace podio {

/// Generalized Link type for both Mutable and immutable (default)
/// versions. User facing clases with the expected naming scheme are defined via
/// versions. User facing classes with the expected naming scheme are defined via
/// template aliases in LinkFwd.h
template <typename FromT, typename ToT, bool Mutable>
class LinkT {
Expand Down Expand Up @@ -251,7 +251,7 @@ class LinkT {
/// and if the requested type is actually part of the Link. Will result
/// in a compilation error if any of these conditions is not met.
///
/// @tparam T type of value (**infered!**)
/// @tparam T type of value (**inferred!**)
/// @param value the element to set for this link.
template <typename T,
std::enable_if_t<Mutable && !std::is_same_v<ToT, FromT> &&
Expand Down
2 changes: 1 addition & 1 deletion include/podio/utilities/TypeHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ namespace detail {
template <typename T>
using hasObject_t = typename T::object_type;

/// Detector for checking the existance of a collection_type type member.
/// Detector for checking the existence of a collection_type type member.
template <typename T>
using hasCollection_t = typename T::collection_type;

Expand Down
2 changes: 1 addition & 1 deletion tests/datamodel/LinkCollections.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// Define an link that is used for the I/O tests
using TestLinkCollection = podio::LinkCollection<ExampleHit, ExampleCluster>;
// Define a link with an interace type that is used for I/O tests
// Define a link with an interface type that is used for I/O tests
using TestInterfaceLinkCollection = podio::LinkCollection<ExampleCluster, TypeWithEnergy>;

#endif // PODIO_TESTS_LINKCOLLECTIONS_H
4 changes: 2 additions & 2 deletions tests/unittests/links.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ TEST_CASE("LinkCollection subset collection", "[links][subset-colls]") {
// Cannot convert into a subset collection if elements already present
REQUIRE_THROWS_AS(links.setSubsetCollection(), std::logic_error);

// Connot convert a subset collection into a normal collection
// Cannot convert a subset collection into a normal collection
REQUIRE_THROWS_AS(linkRefs.setSubsetCollection(false), std::logic_error);
}

Expand Down Expand Up @@ -452,7 +452,7 @@ TEST_CASE("Links with interfaces", "[links][interface-types]") {
}

#ifdef PODIO_JSON_OUTPUT
TEST_CASE("Link JSON converstion", "[links][json]") {
TEST_CASE("Link JSON conversion", "[links][json]") {
const auto& [links, hits, clusters] = createLinkCollections();
const nlohmann::json json{{"links", links}};

Expand Down

0 comments on commit 1c8061e

Please sign in to comment.