Skip to content

Commit bdc9e2a

Browse files
committed
1 parent e21e46b commit bdc9e2a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

koans/about_blocks.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ def test_stand_alone_blocks_can_be_passed_to_methods_expecting_blocks
8282

8383
# ------------------------------------------------------------------
8484

85-
def method_with_explict_block(&block)
85+
def method_with_explicit_block(&block)
8686
block.call(10)
8787
end
8888

8989
def test_methods_can_take_an_explicit_block_argument
90-
assert_equal __, method_with_explict_block { |n| n * 2 }
90+
assert_equal __, method_with_explicit_block { |n| n * 2 }
9191

9292
add_one = lambda { |n| n + 1 }
93-
assert_equal __, method_with_explict_block(&add_one)
93+
assert_equal __, method_with_explicit_block(&add_one)
9494
end
9595

9696
end

src/about_blocks.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ def test_stand_alone_blocks_can_be_passed_to_methods_expecting_blocks
8282

8383
# ------------------------------------------------------------------
8484

85-
def method_with_explict_block(&block)
85+
def method_with_explicit_block(&block)
8686
block.call(10)
8787
end
8888

8989
def test_methods_can_take_an_explicit_block_argument
90-
assert_equal __(20), method_with_explict_block { |n| n * 2 }
90+
assert_equal __(20), method_with_explicit_block { |n| n * 2 }
9191

9292
add_one = lambda { |n| n + 1 }
93-
assert_equal __(11), method_with_explict_block(&add_one)
93+
assert_equal __(11), method_with_explicit_block(&add_one)
9494
end
9595

9696
end

0 commit comments

Comments
 (0)