pydantic / jiter

Fast iterable JSON parser.
https://crates.io/crates/jiter
MIT License
251 stars 18 forks source link

typo in public type names / method names: peak -> peek? #50

Closed decathorpe closed 11 months ago

decathorpe commented 11 months ago

It looks like there's a typo in the name of one public enum (Peak) and one public method (Jiter::peak):

Reading the documentation for what that type / method does, I suppose they should be named Peek / peek instead?

Here's the corresponding trait from the Rust standard library: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html

samuelcolvin commented 11 months ago

Weird, I thought I already noticed this and fixed, apparently not.

PR welcome to correct this.

samuelcolvin commented 11 months ago

You're right, it should definitely be "peek"