From 0bb74e17d22db4c7c2de0bb50f0d9c2aefb824f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20=C5=BBygie=C5=82o?= <11896137+pzygielo@users.noreply.github.com> Date: Thu, 17 Mar 2022 11:17:21 -0700 Subject: [PATCH] Close verbatim in 3rd column header to fix table rendering 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=https://github.com/google/error-prone/pull/3008 from pzygielo:splitter 77882b6d789d9134f087dc599072c4cecab5cae9 PiperOrigin-RevId: 435397302 --- docs/bugpattern/StringSplitter.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/bugpattern/StringSplitter.md b/docs/bugpattern/StringSplitter.md index f743202205b..b522b3ea019 100644 --- a/docs/bugpattern/StringSplitter.md +++ b/docs/bugpattern/StringSplitter.md @@ -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: