Skip to content

Commit

Permalink
Close verbatim in 3rd column header to fix table rendering
Browse files Browse the repository at this point in the history
The key change is in l. 14 only. Lines 15-20 only add single space.

Change [StringSplitter](https://errorprone.info/bugpattern/StringSplitter)

![ep-before](https://user-images.githubusercontent.com/11896137/155527255-5e401bd8-9eab-4117-b99c-2e10d77039a9.png)

to

![ep-after](https://user-images.githubusercontent.com/11896137/155527292-7120c01d-ced4-465e-ab4b-91d8e6c35ae5.png)

Fixes #3008

COPYBARA_INTEGRATE_REVIEW=#3008 from pzygielo:splitter 77882b6
PiperOrigin-RevId: 435397302
  • Loading branch information
pzygielo authored and Error Prone Team committed Mar 17, 2022
1 parent 12d68d5 commit 0bb74e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/bugpattern/StringSplitter.md
Expand Up @@ -11,13 +11,13 @@ The result is `[""]` and `[]`!

More examples:

input | `input.split(":")` | `Pattern.compile(":").split(input) | `Splitter.on(':').split(input)`
-------- | ------------------- | ---------------------------------- | -------------------------------
`""` | `[""]` | `[""]` | `[""]`
`":"` | `[]` | `[]` | `["", ""]`
`":::"` | `[]` | `[]` | `["", "", "", ""]`
`"a:::"` | `["a"]` | `["a"]` | `["a", "", "", ""]`
`":::b"` | `["", "", "", "b"]` | `["", "", "", "b"]` | `["", "", "", "b"]`
input | `input.split(":")` | `Pattern.compile(":").split(input)` | `Splitter.on(':').split(input)`
-------- | ------------------- | ----------------------------------- | -------------------------------
`""` | `[""]` | `[""]` | `[""]`
`":"` | `[]` | `[]` | `["", ""]`
`":::"` | `[]` | `[]` | `["", "", "", ""]`
`"a:::"` | `["a"]` | `["a"]` | `["a", "", "", ""]`
`":::b"` | `["", "", "", "b"]` | `["", "", "", "b"]` | `["", "", "", "b"]`

Prefer either:

Expand Down

0 comments on commit 0bb74e1

Please sign in to comment.