Skip to content

Commit 2a8aa6a

Browse files
authored
Fix typo in name of library version constant (Neargye#25)
1 parent 6d58197 commit 2a8aa6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/semver.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ constexpr bool satisfies(const version& ver, std::string_view str, satisfies_opt
800800
} // namespace semver::range
801801

802802
// Version lib semver.
803-
inline constexpr auto semver_verion = version{SEMVER_VERSION_MAJOR, SEMVER_VERSION_MINOR, SEMVER_VERSION_PATCH};
803+
inline constexpr auto semver_version = version{SEMVER_VERSION_MAJOR, SEMVER_VERSION_MINOR, SEMVER_VERSION_PATCH};
804804

805805
} // namespace semver
806806

test/test.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434

3535
using namespace semver;
3636

37-
static_assert(semver_verion.major == SEMVER_VERSION_MAJOR);
38-
static_assert(semver_verion.minor == SEMVER_VERSION_MINOR);
39-
static_assert(semver_verion.patch == SEMVER_VERSION_PATCH);
37+
static_assert(semver_version.major == SEMVER_VERSION_MAJOR);
38+
static_assert(semver_version.minor == SEMVER_VERSION_MINOR);
39+
static_assert(semver_version.patch == SEMVER_VERSION_PATCH);
4040

4141
static_assert(alignof(version) == 1);
4242
static_assert(alignof(prerelease) == 1);

0 commit comments

Comments
 (0)