We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4606e32 commit 697d1aaCopy full SHA for 697d1aa
src/lib.rs
@@ -3,7 +3,10 @@
3
///
4
/// # Example
5
/// ```
6
+/// // Importing the `implement_measurement` macro from the external crate is important
7
/// #[macro_use]
8
+/// extern crate measurements;
9
+///
10
/// use measurements::measurement::*;
11
12
/// struct Cubits {
@@ -21,7 +24,11 @@
21
24
/// }
22
25
23
26
/// // Invoke the macro to automatically implement Add, Sub, etc...
-/// // implement_measurement! { Cubits } // TODO: Fix doc tests to make this work...
27
+/// implement_measurement! { Cubits }
28
29
+/// // The main function here is only included to make doc tests compile.
30
+/// // You should't need it in your own code.
31
+/// fn main() { }
32
33
#[macro_use]
34
pub mod measurement;
0 commit comments