Update docs/dev/core/new-metric-type.md

Co-Authored-By: Michael Droettboom <mdboom@gmail.com>
This commit is contained in:
Jan-Erik Rediger 2019-07-24 16:46:07 +02:00 коммит произвёл GitHub
Родитель 9b6ab16eb6
Коммит 5100c3289b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -140,7 +140,7 @@ Each metric type is implemented in its own module.
Add a new file named after your metric, e.g. `glean-core/ffi/src/counter.rs`, and declare it in `glean-core/ffi/src/lib.rs` with `mod counter;`.
In the metric type module define your metric type using the `define_metric` macro.
This allows to reference the metric name and defines the global map as well as some common functions such as the constructor and destructor.
This allows referencing the metric name and defines the global map as well as some common functions such as the constructor and destructor.
Simple operations can be also defined in the same macro invocation: