Skip to content

Commit 307d737

Browse files
authoredApr 4, 2020
Fix 'the the' typos in comments (#9554)
1 parent b8d29ab commit 307d737

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/mapgen/mapgen_valleys.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ int MapgenValleys::generateTerrain()
390390

391391
// Rivers are placed where 'river' is negative
392392
if (river < 0.0f) {
393-
// Use the the function -sqrt(1-x^2) which models a circle
393+
// Use the function -sqrt(1-x^2) which models a circle
394394
float tr = river / river_size_factor + 1.0f;
395395
float depth = (river_depth_bed *
396396
std::sqrt(std::fmax(0.0f, 1.0f - tr * tr)));

‎src/script/common/c_internal.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int script_exception_wrapper(lua_State *L, lua_CFunction f)
4747
/*
4848
* Note that we can't get tracebacks for LUA_ERRMEM or LUA_ERRERR (without
4949
* hacking Lua internals). For LUA_ERRMEM, this is because memory errors will
50-
* not execute the the error handler, and by the time lua_pcall returns the
50+
* not execute the error handler, and by the time lua_pcall returns the
5151
* execution stack will have already been unwound. For LUA_ERRERR, there was
5252
* another error while trying to generate a backtrace from a LUA_ERRRUN. It is
5353
* presumed there is an error with the internal Lua state and thus not possible

0 commit comments

Comments
 (0)
Please sign in to comment.