diff --git a/include/core-util/utility.h b/include/core-util/utility.h index e9efbc1..524e219 100644 --- a/include/core-util/utility.h +++ b/include/core-util/utility.h @@ -164,7 +164,7 @@ namespace math } template - inline T nextLargeestPow2(T x) { + inline T nextLargestPow2(T x) { x |= (x >> 1); x |= (x >> 2); x |= (x >> 4); @@ -308,7 +308,7 @@ namespace math return dis(gen); } - //! flips a coin: 50% chance to retrun true; otherwise false + //! flips a coin: 50% chance to return true; otherwise false inline bool randomCointoss() { if (randomUniform(0.0f, 1.0f) > 0.5f) return false; //there may be some bias else return true; @@ -428,7 +428,7 @@ namespace util inline void runSystemCommand(const std::string &s) { - //TODO fix it: this should in theroy call s = util::replace(s, "/", "\\"); + //TODO fix it: this should in theory call s = util::replace(s, "/", "\\"); system(s.c_str()); } diff --git a/include/mLibOpenMesh.h b/include/mLibOpenMesh.h index 2e74a38..6f37af5 100644 --- a/include/mLibOpenMesh.h +++ b/include/mLibOpenMesh.h @@ -10,7 +10,7 @@ //#define OM_STATIC_BUILD //#endif -//This is pretty bad design choice to define it here because it will cause different behaviror if math.h was included before... +//This is pretty bad design choice to define it here because it will cause different behaviour if math.h was included before... #ifndef _USE_MATH_DEFINES #define _USE_MATH_DEFINES #endif