File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 77
88env :
99 CARGO_TERM_COLOR : always
10- NIGHTLY : ' nightly-2023-03-24 '
10+ NIGHTLY : ' nightly-2023-09-30 '
1111
1212jobs :
1313 check_lints :
Original file line number Diff line number Diff line change 6868 }
6969
7070 /// Returns a new yarn containing the contents of the given slice.
71- ///
71+ ///
7272 /// This function will always return an inlined string, or `None` if the
7373 /// given buffer is too big. In general, you should not need to call this
7474 /// function, since all `YarnBox`-constructing functions will automatically
@@ -485,15 +485,15 @@ where
485485 }
486486
487487 /// Copies `buf` and returns an immortal yarn.
488- ///
488+ ///
489489 /// This is a shorthand for `YarnBox::new(buf).immortalize()`, which is an
490490 /// idiom for copying a buffer into an immortal yarn.
491- ///
491+ ///
492492 /// ```
493493 /// # use byteyarn::*;
494494 /// let short = Yarn::copy("short");
495495 /// assert_eq!(short, "short");
496- ///
496+ ///
497497 /// let long = Yarn::copy("loooooooooooooooooong");
498498 /// assert_eq!(long, "loooooooooooooooooong");
499499 /// ```
Original file line number Diff line number Diff line change 1515//! do not track an internal capacity, and the slice returned by
1616//! [`Yarn::as_slice()`] does not have the same pointer stability properties as
1717//! [`String`] (these are rarely needed, though).
18- //!
18+ //!
1919//! ---
2020//!
2121//! Yarns are useful for situations in which a copy-on-write string is necessary
Original file line number Diff line number Diff line change 9696 }
9797
9898 /// Returns a new yarn containing the contents of the given slice.
99- ///
99+ ///
100100 /// This function will always return an inlined string, or `None` if the
101101 /// given buffer is too big. In general, you should not need to call this
102102 /// function, since all `YarnRef`-constructing functions will automatically
You can’t perform that action at this time.
0 commit comments