Skip to content

minor typos #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/sectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ abstract type Sector end
Singleton type to represent an iterator over the possible values of type `I`, whose
instance is obtained as `values(I)`. For a new `I::Sector`, the following should be defined
* `Base.iterate(::SectorValues{I}[, state])`: iterate over the values
* `Base.IteratorSize(::Type{SectorValues{I}})`: `HasLenght()`, `SizeUnkown()`
* `Base.IteratorSize(::Type{SectorValues{I}})`: `HasLength()`, `SizeUnknown()`
or `IsInfinite()` depending on whether the number of values of type `I` is finite
(and sufficiently small) or infinite; for a large number of values, `SizeUnknown()` is
recommend because this will trigger the use of `GenericGradedSpace`.
recommended because this will trigger the use of `GenericGradedSpace`.
If `IteratorSize(I) == HasLength()`, also the following must be implemented:
* `Base.length(::SectorValues{I})`: the number of different values
* `Base.getindex(::SectorValues{I}, i::Int)`: a mapping between an index `i` and an
Expand Down Expand Up @@ -413,7 +413,7 @@ end

# SectorSet:
#-------------------------------------------------------------------------------
# Custum generator to represent sets of sectors with type inference
# Custom generator to represent sets of sectors with type inference
struct SectorSet{I<:Sector,F,S}
f::F
set::S
Expand Down
Loading