Fix old syntax in the README of crate uint
* Fix old syntax in the README of crate uint
The syntax actually reported is not working and is different from that present in the test and the examples folders.
* Update uint README.md with the instruction for pre and 2018-edition
@@ -16,11 +16,26 @@ In your `Cargo.toml` paste
uint = "0.8"
```
+Import the macro
+
+```
+use uint::construct_uint;
+```
+
+If you're using pre-edition Rust in your main file
+
+```
+#[macro_use]
+extern crate uint;
+```
+
Construct your own big unsigned integer type as follows.
```
// U1024 with 1024 bits consisting of 16 x 64-bit words
-construct_uint!(U1024; 16);
+construct_uint! {
+ pub struct U1024(16);
+}
```
## Tests
