about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorHannes Körber <hannes@hkoerber.de>2022-12-15 14:05:01 +0100
committerHannes Körber <hannes@hkoerber.de>2022-12-15 14:05:03 +0100
commit9671dd239d37cf6001eaea1f85f9f81200b8ade6 (patch)
treea916f5adec95590b7a402af7ecaaca3897f66127 /library/core/src/array
parentd67000e44e1b9908c81fc4d5de875608f1b80ae9 (diff)
downloadrust-9671dd239d37cf6001eaea1f85f9f81200b8ade6.tar.gz
rust-9671dd239d37cf6001eaea1f85f9f81200b8ade6.zip
doc: Fix a few small issues
* A few typos around generic types (`;` vs `,`)
* Use inline code formatting for code fragments
* One instance of wrong wording
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 94a1a1d32bc..2825e0bbb43 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -69,7 +69,7 @@ where
 /// if any element creation was unsuccessful.
 ///
 /// The return type of this function depends on the return type of the closure.
-/// If you return `Result<T, E>` from the closure, you'll get a `Result<[T; N]; E>`.
+/// If you return `Result<T, E>` from the closure, you'll get a `Result<[T; N], E>`.
 /// If you return `Option<T>` from the closure, you'll get an `Option<[T; N]>`.
 ///
 /// # Arguments
@@ -522,7 +522,7 @@ impl<T, const N: usize> [T; N] {
     /// return an array the same size as `self` or the first error encountered.
     ///
     /// The return type of this function depends on the return type of the closure.
-    /// If you return `Result<T, E>` from the closure, you'll get a `Result<[T; N]; E>`.
+    /// If you return `Result<T, E>` from the closure, you'll get a `Result<[T; N], E>`.
     /// If you return `Option<T>` from the closure, you'll get an `Option<[T; N]>`.
     ///
     /// # Examples