Skip to content

Commit d6eaf55

Browse files
committed
Update documentation for StringBuf
1 parent c028239 commit d6eaf55

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

spdlog/src/string_buf.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
/// By default, it is an alias for [`String`], if feature `flexible-string` is
66
/// enabled, an internal type `FlexibleString` will be used.
77
///
8-
/// `FlexibleString` has a fixed stack buffer of 250 bytes, and upgrades to
8+
/// `FlexibleString` has a fixed stack buffer of 256 bytes, and upgrades to
99
/// [`String`] when more space is needed. It provides APIs that are as
1010
/// consistent as possible with [`String`], but some APIs are not yet
11-
/// implemented or cannot be implemented.
11+
/// implemented or not possible to be implemented.
1212
///
13-
/// # Warning
13+
/// <div class="warning">
1414
///
1515
/// `FlexibleString` can improve performance as it avoids memory allocation when
16-
/// formatting records as much as possible, however it contains unsafe code.
16+
/// formatting records as much as possible, however it contains unsafe code that
17+
/// has not been strictly reviewed.
18+
///
19+
/// </div>
1720
///
1821
/// [`Sink`]: crate::sink::Sink
1922
/// [`Formatter`]: crate::formatter::Formatter

0 commit comments

Comments
 (0)