Skip to content

Commit

Permalink
1. [release:1.0.0]
Browse files Browse the repository at this point in the history
  • Loading branch information
just-do-halee committed Dec 18, 2021
1 parent 7cfa267 commit ee071db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "A more free Rust-Iterator."

readme = "README.md"

keywords = ["cursor", "iter", "iterator", "data-structure"]
keywords = ["cursor", "pointer", "iter", "iterator", "data-structure"]
categories = ["algorithms", "rust-patterns"]

license = "MIT OR Apache-2.0"
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ cursor = "1.0.0"

---

# [Example](https://github.com/just-do-halee/cursor/tree/main/examples/basic.rs)
# [Example](https://github.com/just-do-halee/cursor/tree/main/examples)

```rust
use cursor::*;
```
---
```rust
fn example7() -> u8 {

Expand All @@ -39,5 +43,18 @@ fn example7() -> u8 {

cursor.current_deref()

}
```
---
```rust
fn example9() {

let mut cursor = StrCursor::new("test입니다. ^^");
cursor += 5;

assert_eq!(cursor.as_preserved_str(), "test입");
assert_eq!(cursor.current(), '니');
assert_eq!(cursor.as_remaining_str(), "다. ^^");

}
```

0 comments on commit ee071db

Please sign in to comment.