зеркало из https://github.com/mozilla/glean.git
Make it clear that the struct should not hold the data directly
This commit is contained in:
Родитель
2d67de7b1a
Коммит
d2aef29503
|
@ -9,7 +9,7 @@ Adding a new metric type involves defining the metric type's API, its persisted
|
|||
|
||||
A metric type implementation is defined in its own file under `glean-core/src/metrics/`, e.g. `glean-core/src/metrics/counter.rs` for a [Counter](/user/metrics/counter.md).
|
||||
|
||||
Start by defining a structure:
|
||||
Start by defining a structure to hold the metric's metadata:
|
||||
|
||||
```rust,noplaypen
|
||||
#[derive(Debug)]
|
||||
|
|
Загрузка…
Ссылка в новой задаче