From 79477417bf6c266d10a8cb4cdd2911465a862c12 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Hirano Date: Fri, 11 Aug 2017 14:38:13 +0900 Subject: [PATCH] Fix example codes for generators guide [ci skip] --- guides/source/generators.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/source/generators.md b/guides/source/generators.md index be1be75e7a..389224d908 100644 --- a/guides/source/generators.md +++ b/guides/source/generators.md @@ -627,7 +627,7 @@ This method also takes a block: ```ruby lib "super_special.rb" do - puts "Super special!" + "puts 'Super special!'" end ``` @@ -636,7 +636,7 @@ end Creates a Rake file in the `lib/tasks` directory of the application. ```ruby -rakefile "test.rake", "hello there" +rakefile "test.rake", 'task(:hello) { puts "Hello, there" }' ``` This method also takes a block: