Skip to content

Commit 2c228d4

Browse files
authored
fix: correct typos in layout doc, arithmetic test, and macro comment (#2582)
* Update mod.rs * Update arithmetic.rs * Update macros.rs
1 parent 95a9cc7 commit 2c228d4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/metadata/src/layout/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub enum Layout<F: Form = MetaForm> {
7979
Array(ArrayLayout<F>),
8080
/// A struct layout with fields of different types.
8181
Struct(StructLayout<F>),
82-
/// An enum layout with a discriminant telling which variant is layed out.
82+
/// An enum layout with a discriminant telling which variant is laid out.
8383
Enum(EnumLayout<F>),
8484
}
8585

crates/primitives/src/arithmetic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ mod tests {
199199
}
200200

201201
#[test]
202-
fn saturatiung_sub() {
202+
fn saturating_sub() {
203203
assert_eq!(u64::MIN, Saturating::saturating_sub(u64::MIN, 1))
204204
}
205205

crates/primitives/src/sol/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
/// Calls a macro upto 12 times with an increasing number of identifiers for each call.
15+
/// Calls a macro up to 12 times with an increasing number of identifiers for each call.
1616
///
1717
/// # Note
1818
///

0 commit comments

Comments
 (0)