Skip to content

Commit

Permalink
Corrige versão para lançamento (#51)
Browse files Browse the repository at this point in the history
* ajusta documentação

* altera versão

* atualiza README.md

* atualiza README.md
  • Loading branch information
brenomfviana authored Feb 25, 2024
1 parent 8b432e8 commit 05b800b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# brado
<a href="https://crates.io/crates/brado">
<img src="https://img.shields.io/crates/v/brado.svg" alt="latest release" />
</a>
<a href="https://crates.io/crates/brado">
<img src="https://img.shields.io/crates/d/brado" alt="latest release" />
</a>
Expand Down Expand Up @@ -48,21 +51,27 @@ Todos os documentos possuem as mesmas funções e funcionam da mesma forma.

```rust
use brado::cpf;

cpf::validate("639.292.470-11"); // true
cpf::validate("639.292.470-10"); // false

cpf::validate("63929247011"); // true
cpf::validate("63929247010"); // false
```

### mask

```rust
use brado::cpf;

cpf::mask("63929247011"); // "639.292.470-11"
```

### generate

```rust
use brado::cpf;

cpf::generate(); // "63929247011"
cpf::generate_masked(); // "639.292.470-11"
```
Expand Down
2 changes: 1 addition & 1 deletion brado/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "brado"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
license = "MIT"
readme = "../README.md"
Expand Down
4 changes: 2 additions & 2 deletions brado/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//!
//! ## Example
//! ```
//! use brado;
//! brado::cpf::validate("639.292.470-11");
//! use brado::cpf;
//! cpf::validate("639.292.470-11");
//! ```
pub mod cnh;
pub mod cnpj;
Expand Down

0 comments on commit 05b800b

Please sign in to comment.