From b5873218b6aad203f04a7aca4b4258e42dd343c2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 5 Sep 2015 15:30:50 +0100 Subject: [PATCH] Ruby mark_function example and docs fixes Relates to Ruby trackings hash bug #225 --- Doc/Manual/Ruby.html | 2 +- Examples/ruby/mark_function/runme.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/Manual/Ruby.html b/Doc/Manual/Ruby.html index e78447b92..6590a133b 100644 --- a/Doc/Manual/Ruby.html +++ b/Doc/Manual/Ruby.html @@ -4818,7 +4818,7 @@ public: class Zoo { protected: - std::vector<animal *=""> animals; + std::vector<Animal *> animals; public: // Construct an empty zoo diff --git a/Examples/ruby/mark_function/runme.rb b/Examples/ruby/mark_function/runme.rb index 6d84ee88f..a7c5b042e 100644 --- a/Examples/ruby/mark_function/runme.rb +++ b/Examples/ruby/mark_function/runme.rb @@ -9,7 +9,7 @@ begin zoo.add_animal(tiger1) # unset variables to force gc - tiger = nil + tiger1 = nil end GC.start @@ -20,4 +20,4 @@ tiger2 = zoo.get_animal(0) # Call a method to verify the animal is still valid and not gc'ed if tiger2.get_name != "tiger1" raise RuntimeError, "Wrong animal name" -end +end