Skip to content

Commit

Permalink
Merge pull request #8656 from milouse/patch-1
Browse files Browse the repository at this point in the history
Fix documentation markup in auto_correct.adoc
  • Loading branch information
koic committed Sep 5, 2020
2 parents 69700a5 + 7f82fed commit b00ac49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/usage/auto_correct.adoc
Expand Up @@ -80,7 +80,7 @@ str << 'world' # => now fails because `str` is frozen
str = +'hello' # => We want an unfrozen string literal here...
str << 'world' # => ok
---
----

This diagnostic is valid since the magic comment is indeed missing (thus `Safe: true`),
but the auto-correction is not; some string literals need to be prefixed with `+` to avoid
Expand Down

0 comments on commit b00ac49

Please sign in to comment.