Skip to content

Commit

Permalink
Merge pull request #44 from saolof/patch-1
Browse files Browse the repository at this point in the history
Add conversion from Symbol to ShortString
  • Loading branch information
ScottPJones authored Apr 19, 2021
2 parents 3db80e8 + ab85c69 commit 278e31c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ end

ShortString{T}(s::ShortString{T}) where {T} = s

ShortString(s::Symbol) where {T} = ShortString{T}(String(s))

function ShortString{T}(s::ShortString{S}) where {T, S}
sz = sizeof(s)
check_size(T, sz)
Expand Down

2 comments on commit 278e31c

@ScottPJones
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/36649

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.8 -m "<description of version>" 278e31c05c80f10010a1b9674163046327e86609
git push origin v0.3.8

Please sign in to comment.