diff options
Diffstat (limited to 'spec/ruby/core/proc/fixtures/source_location.rb')
-rw-r--r-- | spec/ruby/core/proc/fixtures/source_location.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/proc/fixtures/source_location.rb b/spec/ruby/core/proc/fixtures/source_location.rb index 468262e02a..688dac1e22 100644 --- a/spec/ruby/core/proc/fixtures/source_location.rb +++ b/spec/ruby/core/proc/fixtures/source_location.rb @@ -5,7 +5,7 @@ module ProcSpecs end def self.my_lambda - lambda { true } + -> { true } end def self.my_proc_new @@ -24,7 +24,7 @@ module ProcSpecs end def self.my_multiline_lambda - lambda do + -> do 'a'.upcase 1 + 22 end @@ -43,7 +43,7 @@ module ProcSpecs end def self.my_detached_lambda - body = lambda { true } + body = -> { true } lambda(&body) end |