Skip to content

Commit 013f7fd

Browse files
committed
fix doc of HipStr::borrowed
fixes #28
1 parent 935df13 commit 013f7fd

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Diff for: CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Notable changes only.
44

5+
## [unreleased]
6+
7+
### Fixed
8+
9+
- fix doc issue [#28](https://github.com/polazarus/hipstr/issues/28)
10+
511
## [0.5.1] - 2024-08-02
612

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

111117
Initial release
112118

113-
<!-- [unreleased]: https://github.com/polazarus/hipstr/compare/0.5.1...HEAD -->
119+
[unreleased]: https://github.com/polazarus/hipstr/compare/0.5.1...HEAD
114120
[0.5.1]: https://github.com/polazarus/hipstr/compare/0.5.0...0.5.1
115121
[0.5.0]: https://github.com/polazarus/hipstr/compare/0.4.0...0.5.0
116122
[0.4.0]: https://github.com/polazarus/hipstr/compare/0.3.3...0.4.0

Diff for: src/bytes.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ where
128128
Self(Raw::with_capacity(cap))
129129
}
130130

131-
/// Creates a new `HipByt` from a borrowed slice without copying the slice.
131+
/// Creates a new `HipByt` from a byte slice.
132+
/// No heap allocation is performed.
133+
/// **The slice is not copied.**
132134
///
133135
/// # Examples
134136
///

Diff for: src/string.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ where
116116
Self(HipByt::with_capacity(cap))
117117
}
118118

119-
/// Creates a new `HipStr` from a static string slice without copying the slice.
119+
/// Creates a new `HipStr` from a string slice.
120+
/// No heap allocation is performed.
121+
/// **The string is not copied.**
120122
///
121123
/// # Examples
122124
///

0 commit comments

Comments
 (0)