quickcheck icon indicating copy to clipboard operation
quickcheck copied to clipboard

Fix simple example in README

Open lynn opened this issue 3 years ago • 0 comments

Maybe I'm doing something wrong, but the example didn't compile for me until I added a use crate::reverse:

PS C:\code\playground> cargo test
   Compiling playground v0.1.0 (C:\code\playground)
  --> src\main.rs:17:19
   |
17 |             xs == reverse(&reverse(&xs))
   |                   ^^^^^^^ not found in this scope
   |
help: consider importing this function
   |
15 |     use crate::reverse;
   |

I also ran rustfmt on it; the vec![] is a suggestion from it.

lynn avatar Dec 05 '22 16:12 lynn