Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed Aug 8, 2022
1 parent a70d363 commit cea5443
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prelude.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Across all files in this repository, we assume some definitions to always be in
/// means the program caused UB or put the machine to a halt.
type Result<T=()> = std::result::Result<T, TerminationInfo>;

#[non_exhaustive}
#[non_exhaustive]
enum TerminationInfo {
Ub(String),
MachineStop(String),
Expand Down Expand Up @@ -68,10 +68,10 @@ impl BigInt {
/// else it is in the interval `-2^(size.bits()-1) .. 2^(size.bits()-1)`.
///
/// `size` must not be zero.
fn modulo(self, signed: Signedess, size: Size) -> BigInt;
fn modulo(self, signed: Signedness, size: Size) -> BigInt;

/// Tests whether an integer is in-bounds of a finite integer type.
fn in_bounds(self, signed: Signedess, size: Size) -> bool {
fn in_bounds(self, signed: Signedness, size: Size) -> bool {
self == self.modulo(signed, size)
}
}
Expand Down

0 comments on commit cea5443

Please sign in to comment.