···9999/// }
100100/// ```
101101/// # Configuration
102102-/// By default, it will consider any value of type `Stat` to be a sub-stat.
103103-/// You can use `#[stat]` to add a sub-stat and `#[stat_ignore]` to ignore one.
102102+/// By default, it will consider any field whose type contains "Stat" to be a sub-stat.
103103+/// You can use `#[stat]` to add other sub-stats and `#[stat_ignore]` to ignore one.
104104/// ```rust
105105/// # use immediate_stats::*;
106106/// # #[derive(StatContainer, Default, Debug, PartialEq)]
···143143 let mut is_stat = false;
144144145145 // Check if type is `Stat`.
146146- if field.ty.to_token_stream().to_string() == "Stat" {
146146+ if field.ty.to_token_stream().to_string().contains("Stat") {
147147 is_stat = true;
148148 }
149149