Skip to content

Commit 2931472

Browse files
committed
document rate.h
1 parent 9d48eff commit 2931472

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/datadog/rate.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#pragma once
22

3+
// This component provides a `class`, `Rate`, that is a `double` whose value is
4+
// between zero and one, inclusive.
5+
//
6+
// `Rate` objects are obtained by calling the static member function
7+
// `Rate::from` with a `double` argument. A default-constructed `Rate` has the
8+
// zero value. The static member functions `Rate::one` and `Rate::zero` are
9+
// provided for convenience.
10+
311
#include <variant>
412

513
#include "expected.h"

0 commit comments

Comments
 (0)