Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Swapped x and y in the README.md example code #16

Open
wants to merge 1 commit into from

1 participant

@vdh

Patch for issue #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 14, 2012
  1. @vdh

    Swapped x and y in the README.md example code to correctly match the …

    vdh authored
    …implementation of `is_dark( row, col )`
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -82,10 +82,10 @@ td.white { background-color: #fff; }
</style>
<table>
-<% @qr.modules.each_index do |x| %>
+<% @qr.modules.each_index do |y| %>
<tr>
- <% @qr.modules.each_index do |y| %>
- <% if @qr.dark?(x,y) %>
+ <% @qr.modules.each_index do |x| %>
+ <% if @qr.dark?(y,x) %>
<td class="black"/>
<% else %>
<td class="white"/>
Something went wrong with that request. Please try again.