Skip to content

Commit

Permalink
static-metric: fix typos in docstrings (#479)
Browse files Browse the repository at this point in the history
It should be `flashable` instead of `flash able`

Signed-off-by: Eval EXEC <execvy@gmail.com>
  • Loading branch information
eval-exec authored May 6, 2024
1 parent 04fce2f commit f0c9bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static-metric/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ 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 {
let body: StaticMetricMacroBody = syn::parse(input).unwrap();
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();
Expand Down

0 comments on commit f0c9bc2

Please sign in to comment.