Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix doc of HipStr::borrowed #29

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Notable changes only.

## [unreleased]

### Fixed

- fix doc issue [#28](https://github.com/polazarus/hipstr/issues/28)

## [0.5.1] - 2024-08-02

### Added
Expand Down Expand Up @@ -110,7 +116,7 @@ Most of those addition are breaking because they shadows `str`'s methods.

Initial release

<!-- [unreleased]: https://github.com/polazarus/hipstr/compare/0.5.1...HEAD -->
[unreleased]: https://github.com/polazarus/hipstr/compare/0.5.1...HEAD
[0.5.1]: https://github.com/polazarus/hipstr/compare/0.5.0...0.5.1
[0.5.0]: https://github.com/polazarus/hipstr/compare/0.4.0...0.5.0
[0.4.0]: https://github.com/polazarus/hipstr/compare/0.3.3...0.4.0
Expand Down
4 changes: 3 additions & 1 deletion src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ where
Self(Raw::with_capacity(cap))
}

/// Creates a new `HipByt` from a borrowed slice without copying the slice.
/// Creates a new `HipByt` from a byte slice.
/// No heap allocation is performed.
/// **The slice is not copied.**
///
/// # Examples
///
Expand Down
4 changes: 3 additions & 1 deletion src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ where
Self(HipByt::with_capacity(cap))
}

/// Creates a new `HipStr` from a static string slice without copying the slice.
/// Creates a new `HipStr` from a string slice.
/// No heap allocation is performed.
/// **The string is not copied.**
///
/// # Examples
///
Expand Down