Fixed README
This commit is contained in:
parent
9fa23ff24d
commit
3beff945a4
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "templest"
|
name = "templest"
|
||||||
version = "0.1.1"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A procedural macro to manage temporary variables"
|
description = "A procedural macro to manage temporary variables"
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
A single procedural macro to make temporary variables easier.
|
A single procedural macro to make temporary variables easier.
|
||||||
Code example:
|
Code example:
|
||||||
```rs
|
```rs
|
||||||
use templest::temp;
|
use temp::temp;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let temp!() = 10;
|
let temp!() = 10;
|
||||||
|
@ -13,7 +13,7 @@ fn main() {
|
||||||
This code example prints `10` to the console.
|
This code example prints `10` to the console.
|
||||||
If we add a new temporary variable, after we define the first one as 10, and define that as 20, than 20 will be printed.
|
If we add a new temporary variable, after we define the first one as 10, and define that as 20, than 20 will be printed.
|
||||||
```rs
|
```rs
|
||||||
use templest::temp;
|
use temp::temp;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let temp!() = 10;
|
let temp!() = 10;
|
||||||
|
|
Loading…
Reference in a new issue