diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-19 14:01:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-19 14:01:39 +0000 |
| commit | 3c5aef3625a931c73bbbfff6e66d9c8576a6b6ee (patch) | |
| tree | fb76811760b7bb999cea6d3ce90f2d37f7e50ca2 /library/alloc | |
| parent | d49361a79871602b40182790d7dd064ece1d3c5d (diff) | |
| parent | 2f0ba6791944fbbc9236ea4138389039ebbffd4a (diff) | |
| download | rust-3c5aef3625a931c73bbbfff6e66d9c8576a6b6ee.tar.gz rust-3c5aef3625a931c73bbbfff6e66d9c8576a6b6ee.zip | |
Rollup merge of #139922 - jnqnfe:cstr_doc_fix, r=jhpratt
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.
Diffstat (limited to 'library/alloc')
| -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 |
