Skip to content

Commit

Permalink
Merge pull request flipperzero-rs#91 from agarof/fix-no-alloc-docs
Browse files Browse the repository at this point in the history
Fix cargo doc when not using the alloc feature
  • Loading branch information
dcoles committed Jul 5, 2023
2 parents c55a652 + fa7fe30 commit 4d6b318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/flipperzero/src/furi/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ const WHITESPACE: &[char] = &[
/// to provide the flexibility of Rust's [`String`].
/// It is used in various APIs of the Flipper Zero SDK.
///
/// This type does not requre the `alloc` feature flag, because it does not use the Rust
/// This type does not require the `alloc` feature flag, because it does not use the Rust
/// allocator. Very short strings (7 bytes or fewer) are stored directly inside the
/// `FuriString` struct (which is stored on the heap), while longer strings are allocated
/// on the heap by the Flipper Zero firmware.
///
/// [`CString`]: alloc::ffi::CString
/// [`String`]: alloc::string::String
/// [`CString`]: https://doc.rust-lang.org/nightly/alloc/ffi/struct.CString.html
/// [`String`]: https://doc.rust-lang.org/nightly/alloc/string/struct.String.html
#[derive(Eq)]
pub struct FuriString(NonNull<sys::FuriString>);

Expand Down

0 comments on commit 4d6b318

Please sign in to comment.