diff options
| author | Lyndon Brown <jnqnfe@gmail.com> | 2025-04-16 14:42:11 +0100 |
|---|---|---|
| committer | Lyndon Brown <jnqnfe@gmail.com> | 2025-04-16 14:42:11 +0100 |
| commit | 2f0ba6791944fbbc9236ea4138389039ebbffd4a (patch) | |
| tree | 56d38460c2da4cc9e7c374b9e3426510026eb98a | |
| parent | afa859f8121bf2985362a2c8414dc71a825ccf2d (diff) | |
| download | rust-2f0ba6791944fbbc9236ea4138389039ebbffd4a.tar.gz rust-2f0ba6791944fbbc9236ea4138389039ebbffd4a.zip | |
fix incorrect type in cstr `to_string_lossy()` docs
Restoring what it said prior to commit 67065fe in which it was changed incorrectly with no supporting explanation. Closes #139835.
| -rw-r--r-- | library/alloc/src/ffi/c_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/ffi/c_str.rs b/library/alloc/src/ffi/c_str.rs index f6743c65710..ef8548d2429 100644 --- a/library/alloc/src/ffi/c_str.rs +++ b/library/alloc/src/ffi/c_str.rs @@ -1116,7 +1116,7 @@ impl CStr { /// with the corresponding <code>&[str]</code> slice. Otherwise, it will /// replace any invalid UTF-8 sequences with /// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD] and return a - /// <code>[Cow]::[Owned]\(&[str])</code> with the result. + /// <code>[Cow]::[Owned]\([String])</code> with the result. /// /// [str]: prim@str "str" /// [Borrowed]: Cow::Borrowed |
