static-metric: fix typos in docstrings (#479)

It should be `flashable` instead of `flash able`

Signed-off-by: Eval EXEC <execvy@gmail.com>
This commit is contained in:
Eval Exec 2024-05-06 22:00:46 +08:00 committed by GitHub
parent 04fce2f3bf
commit f0c9bc271b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ pub fn make_static_metric(input: TokenStream) -> TokenStream {
TokensBuilder::build(body).into()
}
/// Build auto flush able static metrics.
/// Build auto flushable static metrics.
/// refer to https://github.com/tikv/rust-prometheus/tree/master/static-metric for more info.
#[proc_macro]
pub fn make_auto_flush_static_metric(input: TokenStream) -> TokenStream {
@ -52,7 +52,7 @@ pub fn make_auto_flush_static_metric(input: TokenStream) -> TokenStream {
AutoFlushTokensBuilder::build(body).into()
}
/// Instantiate a auto flush able static metric struct from a HistogramVec or CounterVec.
/// Instantiate an auto flushable static metric struct from a HistogramVec or CounterVec.
#[proc_macro]
pub fn auto_flush_from(input: TokenStream) -> TokenStream {
let def: AutoFlushFromDef = syn::parse(input).unwrap();