diff options
| author | Jana Dönszelmann <jonathan@donsz.nl> | 2025-09-17 20:29:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-17 20:29:38 +0200 |
| commit | c6ed4c04425d7f242a472eb06058f5abe45dac81 (patch) | |
| tree | 1bd93961ae7d738ebf318161b95cc235d9774cd6 | |
| parent | b8a80e4f79498f0ef7e4aff03d9706b9126899a3 (diff) | |
| parent | b2b43b25a845ff624d4b4c0efb604ed3b684a3bd (diff) | |
| download | rust-c6ed4c04425d7f242a472eb06058f5abe45dac81.tar.gz rust-c6ed4c04425d7f242a472eb06058f5abe45dac81.zip | |
Rollup merge of #146681 - XrXr:patch-1, r=joboet
Add space after brace in `Box<[T]>::new_uninit_slice` example Trivial cosmetic change.
| -rw-r--r-- | library/alloc/src/boxed.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 98c9f6b51ab..7d2dd12c6ea 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -640,7 +640,7 @@ impl<T> Box<[T]> { /// values[0].write(1); /// values[1].write(2); /// values[2].write(3); - /// let values = unsafe {values.assume_init() }; + /// let values = unsafe { values.assume_init() }; /// /// assert_eq!(*values, [1, 2, 3]) /// ``` |
