Skip to content

Commit

Permalink
fix ProtectedString docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Sep 26, 2022
1 parent f93c1fd commit 636e6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unitful.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ Creates a string that will be Protected from recipe passes.
Example:
```julia
julia> plot(rand(10)*u"m", xlabel=P"This label is protected")
julia> plot([0,1]u"m", [1,2]u"m/s^2", xlabel=P"This label will NOT display units")
julia> plot(rand(10)*u"m", xlabel=P"This label is not")
julia> plot([0,1]u"m", [1,2]u"m/s^2", xlabel="This label will display units")
```
"""
macro P_str(s)
Expand Down

0 comments on commit 636e6d2

Please sign in to comment.