Skip to content

Commit

Permalink
Fix some annotated docstring typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tecosaur committed Apr 28, 2024
1 parent b4a4dec commit 1d26197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/strings/annotated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ annotated with labeled values.
```
The above diagram represents a `AnnotatedString` where three ranges have been
annotated (labeled `A`, `B`, and `C`). Each annotation holds a label (`Symbol`)
annotated (labelled `A`, `B`, and `C`). Each annotation holds a label (`Symbol`)
and a value (`Any`), paired together as a `Pair{Symbol, <:Any}`.
Labels do not need to be unique, the same region can hold multiple annotations
Expand Down Expand Up @@ -299,7 +299,7 @@ end
annotate!(str::AnnotatedString, [range::UnitRange{Int}], label::Symbol => value)
annotate!(str::SubString{AnnotatedString}, [range::UnitRange{Int}], label::Symbol => value)
Annotate a `range` of `str` (or the entire string) with a labeled value (`label` => `value`).
Annotate a `range` of `str` (or the entire string) with a labelled value (`label` => `value`).
To remove existing `label` annotations, use a value of `nothing`.
"""
annotate!(s::AnnotatedString, range::UnitRange{Int}, @nospecialize(labelval::Pair{Symbol, <:Any})) =
Expand Down

0 comments on commit 1d26197

Please sign in to comment.