Changeset 11591 in project


Ignore:
Timestamp:
08/10/08 15:57:23 (11 years ago)
Author:
sjamaan
Message:

Fix small mistake in Ruby code used to demonstrate block scoping bug in chicken-for-ruby-programmers

Location:
wiki
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiki/chicken-for-ruby-programmers

    r11018 r11591  
    430430
    431431  x = [1, 2, 3, 4]
    432   x.map{|y| x + 10 }
     432  x.map{|y| y + 10 }
    433433  x.each{|y| puts y }
    434434
  • wiki/defstruct

    r11582 r11591  
    2929value of the slot (the {{INIT}} expression will only be evaluated when
    3030no value is given in the constructor procedure).  The {{defstruct}}
    31 macro expand into predicate and accessor functions (just like the
     31macro expands into predicate and accessor functions (just like the
    3232native {{define-record}}):
    3333
Note: See TracChangeset for help on using the changeset viewer.