brownplt / pyret-lang

The Pyret language.
Other
1.06k stars 106 forks source link

documentation typo #1709

Closed shriram closed 9 months ago

shriram commented 9 months ago

https://pyret.org/docs/latest/tables.html#%28part._tables_.Row_row_get-column-names%29 has this test case:

check:
  r = [raw-row: {"city"; "NYC"}, {"pop"; 8500000}]
  r.get-column-names() is [list: "NYC", "pop"]
end

This test fails. The correct answer is [list: "city", "pop"]. I wonder how this even got into the docs…

Bug found by Andrew Mao at Brown.