~mrlee/www.kamelasa.dev

03c2ed30352ed69b2e7a6a288d5e8f3cd13d9638 — Lee Meichin a month ago cfce0c2
Fix example
1 files changed, 3 insertions(+), 3 deletions(-)

M posts/ruby-sorcery.poly.pm
M posts/ruby-sorcery.poly.pm => posts/ruby-sorcery.poly.pm +3 -3
@@ 168,10 168,10 @@ You also have to be absolutely sure you're matching the right thing.
◊codeblock['ruby]{
  card = PlayingCard.new(value: 7, suit: :diamonds, colour: :red)

  card in { value: (1..10), suit: :diamonds }
  card in { value: (1..10) => v, suit: :diamonds  => s}

  # value => 7
  # suit: :diamonds
  # v => 7
  # s: :diamonds

  begin
    card in { value: String, suit: Symbol }