From 0884a1d0796486f57326add53f3ee1e47168d099 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Tue, 19 Feb 2019 13:59:51 +0100
Subject: [PATCH] fixed typo in comment

---
 Framework/Particles/ParticleProperties.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Framework/Particles/ParticleProperties.h b/Framework/Particles/ParticleProperties.h
index 891e11403..41b485ade 100644
--- a/Framework/Particles/ParticleProperties.h
+++ b/Framework/Particles/ParticleProperties.h
@@ -78,7 +78,7 @@ namespace corsika::particles {
    */
   int16_t constexpr GetChargeNumber(Code const p) {
     if (p == Code::Nucleus)
-      throw std::runtime_error("Cannot GetMass() of particle::Nucleus -> unspecified");
+      throw std::runtime_error("Cannot GetChargeNumber() of particle::Nucleus -> unspecified");
     // electric_charges stores charges in units of (e/3), e.g. 3 for a proton
     return detail::electric_charges[static_cast<CodeIntType>(p)] / 3;
   }
@@ -88,7 +88,7 @@ namespace corsika::particles {
    */
   corsika::units::si::ElectricChargeType constexpr GetCharge(Code const p) {
     if (p == Code::Nucleus)
-      throw std::runtime_error("Cannot GetMass() of particle::Nucleus -> unspecified");
+      throw std::runtime_error("Cannot GetCharge() of particle::Nucleus -> unspecified");
     return GetChargeNumber(p) * (corsika::units::constants::e);
   }
 
-- 
GitLab