anixe / doku

fn(Code) -> Docs
MIT License
80 stars 5 forks source link

Fix minor bug with generics + traits #27

Closed thanasis2028 closed 2 years ago

thanasis2028 commented 2 years ago

The recently implemented generic parser was not working properly when any trait bounds were specified at the trait definition (instead of using a where clause), so like this:

struct Something<T: Trait> {
  /* ... */
}

This commit fixes the aforementioned bug.