Skip to content

Commit

Permalink
Fix typos (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsW3 authored Dec 11, 2023
1 parent 3cb40ac commit bcfbf77
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
description: "Updating the code with simpler, easier to understand or more efficient syntax or methods, but not introducing new features."
- name: "performance"
color: 1d76db
description: "Improving performance of the project, not introducing new features."
description: "Improving the performance of the project, not introducing new features."
- name: "new-feature"
color: 0e8a16
description: "New features or options."
Expand Down
4 changes: 2 additions & 2 deletions docs/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Examples of unacceptable behavior by participants include:
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
* Other conduct that could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

Expand Down
6 changes: 3 additions & 3 deletions src/data_structures/src/bit_array.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ trait BitArrayTrait {
/// # Returns
/// `Option<felt252>` - If there are `length` bits remaining, the word is returned as felt252
fn read_word_be(ref self: BitArray, length: usize) -> Option<felt252>;
/// Reads a single word of the specified length upto 256 bits in big endian representation.
/// Reads a single word of the specified length up to 256 bits in big endian representation.
/// For words shorter than (or equal to) 248 bits use `read_word_be(...)` instead.
/// # Arguments
/// `length` - The bit length of the word to read, max 256
/// # Returns
/// `Option<u256>` - If there are `length` bits remaining, the word is returned as u256
fn read_word_be_u256(ref self: BitArray, length: usize) -> Option<u256>;
/// Reads a single word of the specified length upto 512 bits in big endian representation.
/// Reads a single word of the specified length up to 512 bits in big endian representation.
/// For words shorter than (or equal to) 256 bits consider the other read calls instead.
/// # Arguments
/// `length` - The bit length of the word to read, max 512
Expand Down Expand Up @@ -86,7 +86,7 @@ trait BitArrayTrait {
/// # Returns
/// `Option<felt252>` - If there are `length` bits remaining, the word is returned as felt252
fn read_word_le(ref self: BitArray, length: usize) -> Option<felt252>;
/// Reads a single word of the specified length upto 256 bits in little endian representation.
/// Reads a single word of the specified length up to 256 bits in little endian representation.
/// For words shorter than (or equal to) 248 bits use `read_word_be(...)` instead.
/// # Arguments
/// `length` - The bit length of the word to read, max 256
Expand Down
2 changes: 1 addition & 1 deletion src/math/src/gcd_of_n_numbers.cairo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! # GCD for N numbers

// Calculate the greatest common dividor for n numbers
// Calculate the greatest common divisor for n numbers
// # Arguments
// * `n` - The array of numbers to calculate the gcd for
// # Returns
Expand Down
6 changes: 3 additions & 3 deletions src/numeric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Returns the one-dimensional piecewise linear interpolant to a function with give
Several interpolation methods are supported as follow:
- Linear interpolation: y is linearly interpolated between the two nearest neighbors at x
- Nearest-neighbor interpolation: y is set to the value of the nearest neighbor at x
- Constant left interpolation: ys behaves as a integer part function where each y data point extends to the left up to the next index
- Constant right interpolation: ys behaves as a integer part function where each y data point extends to the right up to the next index
- Constant left interpolation: ys behaves as an integer part function where each y data point extends to the left up to the next index
- Constant right interpolation: ys behaves as an integer part function where each y data point extends to the right up to the next index

## [Cumsum](./src/cumsum.cairo)

Return the cumulative sum of the elements ([see also](https://numpy.org/doc/stable/reference/generated/numpy.cumsum.html#numpy-cumsum)).

## [Diff](./src/diff.cairo)

Return the discrete difference of the elements ([see also](https://numpy.org/doc/stable/reference/generated/numpy.diff.html#numpy.diff)).
Return the discrete difference of the elements ([see also](https://numpy.org/doc/stable/reference/generated/numpy.diff.html#numpy.diff)).
2 changes: 1 addition & 1 deletion src/storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Note that unlike `get`, using this bracket notation panics when accessing an out

### Caveats

There are two idiosyncacies you should be aware of when using `List`
There are two idiosyncrasies you should be aware of when using `List`

1. The `append` operation costs 2 storage writes - one for the value itself and another one for updating the List's length
2. Due to a compiler limitation, it is not possible to use mutating operations with a single inline statement. For example, `self.amounts.read().append(42);` will not work. You have to do it in 2 steps:
Expand Down

0 comments on commit bcfbf77

Please sign in to comment.