aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-15 20:58:18 +0000
committerGitHub <noreply@github.com>2017-11-15 20:58:18 +0000
commitfe41f43de4bea57b93689c132bce4dcbb3cbb524 (patch)
treefc3ff686a088916e0993f0faff99f976bffee2d6 /contrib
parentfcf02838584a1785ed304024c60bf5564155ced9 (diff)
parentb3e626e260cb042af8c8811b9c7fae45978e3631 (diff)
downloadrspamd-fe41f43de4bea57b93689c132bce4dcbb3cbb524.tar.gz
rspamd-fe41f43de4bea57b93689c132bce4dcbb3cbb524.zip
Merge pull request #1919 from szepeviktor/patch-1
[Minor] Typos
Diffstat (limited to 'contrib')
-rw-r--r--contrib/torch/nn/IndexLinear.lua2
-rw-r--r--contrib/torch/torch7/lib/luaT/luaT.c2
-rw-r--r--contrib/torch/torch7/test/test.lua2
-rw-r--r--contrib/zstd/cover.c2
-rw-r--r--contrib/zstd/zstd.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/contrib/torch/nn/IndexLinear.lua b/contrib/torch/nn/IndexLinear.lua
index 2ddbcbdb9..928e5d3f2 100644
--- a/contrib/torch/nn/IndexLinear.lua
+++ b/contrib/torch/nn/IndexLinear.lua
@@ -262,7 +262,7 @@ function IndexLinear:accGradParameters(input, gradOutput, scale)
)
-- Increment the running counter to create a new buffer
- -- if we don't flush them in zerogradParamters
+ -- if we don't flush them in zerogradParameters
self.running.counter = self.running.counter + 1
end
diff --git a/contrib/torch/torch7/lib/luaT/luaT.c b/contrib/torch/torch7/lib/luaT/luaT.c
index 2dc307ac7..d87f5d54c 100644
--- a/contrib/torch/torch7/lib/luaT/luaT.c
+++ b/contrib/torch/torch7/lib/luaT/luaT.c
@@ -580,7 +580,7 @@ int luaT_fullparentname(const char *tname, char *parent_name)
return tname[idx] == '.';
}
-/* alias for ensuring backwards compatibilty;
+/* alias for ensuring backwards compatibility;
* use of luaT_fullparentname is preferred.
*/
int luaT_classmodulename(const char *tname, char *parent_name)
diff --git a/contrib/torch/torch7/test/test.lua b/contrib/torch/torch7/test/test.lua
index 2abf01615..6c5dc71b0 100644
--- a/contrib/torch/torch7/test/test.lua
+++ b/contrib/torch/torch7/test/test.lua
@@ -19,7 +19,7 @@ local function maxdiff(x,y)
end
end
--- workarounds for non-existant functions
+-- workarounds for non-existent functions
function torch.HalfTensor:__sub(other)
return (self:real() - other:real()):half()
end
diff --git a/contrib/zstd/cover.c b/contrib/zstd/cover.c
index f6500b3d8..ec7271dba 100644
--- a/contrib/zstd/cover.c
+++ b/contrib/zstd/cover.c
@@ -439,7 +439,7 @@ static COVER_segment_t COVER_selectSegment(const COVER_ctx_t *ctx, U32 *freqs,
U32 *delDmerOcc = COVER_map_at(activeDmers, delDmer);
activeSegment.begin += 1;
*delDmerOcc -= 1;
- /* If this is the last occurence of the dmer, subtract its score */
+ /* If this is the last occurrence of the dmer, subtract its score */
if (*delDmerOcc == 0) {
COVER_map_remove(activeDmers, delDmer);
activeSegment.score -= freqs[delDmer];
diff --git a/contrib/zstd/zstd.h b/contrib/zstd/zstd.h
index ddb284299..158d75afb 100644
--- a/contrib/zstd/zstd.h
+++ b/contrib/zstd/zstd.h
@@ -1071,7 +1071,7 @@ ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary_advanced(ZSTD_CCtx* cctx, const void
/*! ZSTD_CCtx_refCDict() :
* Reference a prepared dictionary, to be used for all next compression jobs.
* Note that compression parameters are enforced from within CDict,
- * and supercede any compression parameter previously set within CCtx.
+ * and supersede any compression parameter previously set within CCtx.
* The dictionary will remain valid for future compression jobs using same CCtx.
* @result : 0, or an error code (which can be tested with ZSTD_isError()).
* Special : adding a NULL CDict means "return to no-dictionary mode".