diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-09 01:04:46 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-09 01:04:46 +0000 |
commit | 861219ce4a8c91a6d94c0d138c2f2bf2b3c2337e (patch) | |
tree | af62e80ee75bdbc02137390728ac6ebb2375231e /struct.c | |
parent | 0d3f9dbfe1ab1696d1c9b1ef46c9da4af786e629 (diff) |
fix doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -82,7 +82,7 @@ rb_struct_s_members_m(VALUE klass) * * Customer = Struct.new(:name, :address, :zip) * joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) - * joe.members #=> ["name", "address", "zip"] + * joe.members #=> [:name, :address, :zip] */ static VALUE @@ -306,11 +306,11 @@ rb_struct_define(const char *name, ...) * * # Create a structure with a name in Struct * Struct.new("Customer", :name, :address) #=> Struct::Customer - * Struct::Customer.new("Dave", "123 Main") #=> #<Struct::Customer name="Dave", address="123 Main"> + * Struct::Customer.new("Dave", "123 Main") #=> #<struct Struct::Customer name="Dave", address="123 Main"> * * # Create a structure named by its constant * Customer = Struct.new(:name, :address) #=> Customer - * Customer.new("Dave", "123 Main") #=> #<Customer name="Dave", address="123 Main"> + * Customer.new("Dave", "123 Main") #=> #<struct Customer name="Dave", address="123 Main"> */ static VALUE |