diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb
index 0b49748fa37eac7d666b2c28ae969a4353ffe93a..afe7447d4e26558c3ab8e60655f0ea4a6cded5d1 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -13,7 +13,7 @@ module DiffHelper
     end
   end
 
-  def show_diff_size_warninig?(diffs)
+  def show_diff_size_warning?(diffs)
     diffs.size > allowed_diff_size
   end
 
diff --git a/app/views/projects/diffs/_diffs.html.haml b/app/views/projects/diffs/_diffs.html.haml
index 49b3dc6941a648c4245155ad9280ed41806bdde6..2d7ecdc3809652632fca5ae183d6d9a7bbfa6898 100644
--- a/app/views/projects/diffs/_diffs.html.haml
+++ b/app/views/projects/diffs/_diffs.html.haml
@@ -12,7 +12,7 @@
         = link_to "Inline Diff", url_for(params_copy), {id: "commit-diff-viewtype"}
 
 
-- if show_diff_size_warninig?(diffs)
+- if show_diff_size_warning?(diffs)
   = render 'projects/diffs/warning', diffs: diffs
 
 .files