Skip to content

Commit

Permalink
Merge pull request JuliaLang#51 from SaschaMann/smann/v0_6/isupper-de…
Browse files Browse the repository at this point in the history
…pwarnings

bob: Fix isupper deprecation warnings (Fixes JuliaLang#32)
  • Loading branch information
SaschaMann authored Mar 5, 2017
2 parents 5d55e89 + 88371dd commit 0a21651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/bob/example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ issilence(stimulus::AbstractString) = isempty(stimulus)
isquestion(stimulus::AbstractString) = endswith(stimulus, '?')

function isshouting(stimulus::AbstractString)
isupper(stimulus) && return true
all(isupper, stimulus) && return true
!any(isalpha, stimulus) && return false

for c in stimulus
Expand Down

0 comments on commit 0a21651

Please sign in to comment.