Skip to content

Commit

Permalink
Updated changelog and readme to reflect changes
Browse files Browse the repository at this point in the history
See #47
  • Loading branch information
whatisinternet committed Mar 8, 2017
1 parent 8750a97 commit 84ea83e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 0.9.0

## Breaking changes:
- Changed type signature for all casting methods to use `&str`. This gives the
crate a >10% increase in performance in a majority of conversions. Although
most users only use:
`"my_string".to_camel_case()`
or
`"myString".to_string().to_snake_case()`
For those using the `to_camel_case("something".to_string())` this will be a
breaking change as the new syntax demands `to_camel_case("something")`.


# 0.8.1

## Bugfixes:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Adds String based inflections for Rust. Snake, kebab, train, camel,
sentence, class, and title cases as well as ordinalize,
deordinalize, demodulize, deconstantize, foreign key, table case, and pluralize/singularize are supported as both traits and pure functions
acting on String types.
acting on &str and String types.

-----
## Documentation:
Expand Down Expand Up @@ -53,7 +53,7 @@ Or

```rust
...
// to use methods like to_snake_case(String);
// to use methods like to_snake_case(&str);
extern crate inflector;

// use inflector::cases::classcase::to_class_case;
Expand Down Expand Up @@ -100,7 +100,7 @@ extern crate inflector;
...
fn main() {
...
let camel_case_string: String = to_camel_case("some_string".to_string());
let camel_case_string: String = to_camel_case("some_string");
...
}

Expand Down

0 comments on commit 84ea83e

Please sign in to comment.