From 861219ce4a8c91a6d94c0d138c2f2bf2b3c2337e Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 9 Mar 2008 01:04:46 +0000 Subject: fix doc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- struct.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index a8857ffe92..f61854fc22 100644 --- a/struct.c +++ b/struct.c @@ -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.new("Dave", "123 Main") #=> # * * # Create a structure named by its constant * Customer = Struct.new(:name, :address) #=> Customer - * Customer.new("Dave", "123 Main") #=> # + * Customer.new("Dave", "123 Main") #=> # */ static VALUE -- cgit v1.2.3