aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar ronshapiro <ronshapiro@google.com>2018-05-14 13:52:02 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-14 13:54:00 -0700
commit17fb8679b8b872223b52ceb409e3079945639ae4 (patch)
treeb475a905e7472ca11ad6f942b51640317f84eea0 /src
parentaa255552dc60fca2fcbf085a2f214c74d87d3a2d (diff)
Fix some code font issues
RELNOTES: None. PiperOrigin-RevId: 196561473
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/StringModule.java34
1 files changed, 14 insertions, 20 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/StringModule.java b/src/main/java/com/google/devtools/build/lib/syntax/StringModule.java
index 0153dc3987..4a0ebe3e47 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/StringModule.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/StringModule.java
@@ -545,9 +545,8 @@ public final class StringModule {
@SkylarkCallable(
name = "rfind",
doc =
- "Returns the last index where <code>sub</code> is found, "
- + "or -1 if no such index exists, optionally restricting to "
- + "[<code>start</code>:<code>end</code>], "
+ "Returns the last index where <code>sub</code> is found, or -1 if no such index exists, "
+ + "optionally restricting to <code>[start:end]</code>, "
+ "<code>start</code> being inclusive and <code>end</code> being exclusive.",
parameters = {
@Param(name = "self", type = String.class, doc = "This string."),
@@ -575,9 +574,8 @@ public final class StringModule {
@SkylarkCallable(
name = "find",
doc =
- "Returns the first index where <code>sub</code> is found, "
- + "or -1 if no such index exists, optionally restricting to "
- + "[<code>start</code>:<code>end]</code>, "
+ "Returns the first index where <code>sub</code> is found, or -1 if no such index exists, "
+ + "optionally restricting to <code>[start:end]</code>, "
+ "<code>start</code> being inclusive and <code>end</code> being exclusive.",
parameters = {
@Param(name = "self", type = String.class, doc = "This string."),
@@ -605,9 +603,8 @@ public final class StringModule {
@SkylarkCallable(
name = "rindex",
doc =
- "Returns the last index where <code>sub</code> is found, "
- + "or raises an error if no such index exists, optionally restricting to "
- + "[<code>start</code>:<code>end</code>], "
+ "Returns the last index where <code>sub</code> is found, or raises an error if no such "
+ + "index exists, optionally restricting to <code>[start:end]</code>, "
+ "<code>start</code> being inclusive and <code>end</code> being exclusive.",
parameters = {
@Param(name = "self", type = String.class, doc = "This string."),
@@ -640,9 +637,8 @@ public final class StringModule {
@SkylarkCallable(
name = "index",
doc =
- "Returns the first index where <code>sub</code> is found, "
- + "or raises an error if no such index exists, optionally restricting to "
- + "[<code>start</code>:<code>end]</code>, "
+ "Returns the first index where <code>sub</code> is found, or raises an error if no such "
+ + " index exists, optionally restricting to <code>[start:end]</code>"
+ "<code>start</code> being inclusive and <code>end</code> being exclusive.",
parameters = {
@Param(name = "self", type = String.class, doc = "This string."),
@@ -838,8 +834,8 @@ public final class StringModule {
name = "count",
doc =
"Returns the number of (non-overlapping) occurrences of substring <code>sub</code> in "
- + "string, optionally restricting to [<code>start</code>:<code>end</code>], "
- + "<code>start</code> being inclusive and <code>end</code> being exclusive.",
+ + "string, optionally restricting to <code>[start:end]</code>, <code>start</code> "
+ + "being inclusive and <code>end</code> being exclusive.",
parameters = {
@Param(name = "self", type = String.class, doc = "This string."),
@Param(name = "sub", type = String.class, legacyNamed = true,
@@ -891,9 +887,8 @@ public final class StringModule {
@SkylarkCallable(
name = "endswith",
doc =
- "Returns True if the string ends with <code>sub</code>, "
- + "otherwise False, optionally restricting to "
- + "[<code>start</code>:<code>end</code>], <code>start</code> being inclusive "
+ "Returns True if the string ends with <code>sub</code>, otherwise False, optionally "
+ + "restricting to <code>[start:end]</code>, <code>start</code> being inclusive "
+ "and <code>end</code> being exclusive.",
parameters = {
@Param(name = "self", type = String.class, doc = "This string."),
@@ -965,9 +960,8 @@ public final class StringModule {
@SkylarkCallable(
name = "startswith",
doc =
- "Returns True if the string starts with <code>sub</code>, "
- + "otherwise False, optionally restricting to "
- + "[<code>start</code>:<code>end</code>], <code>start</code> being inclusive and "
+ "Returns True if the string starts with <code>sub</code>, otherwise False, optionally "
+ + "restricting to <code>[start:end]</code>, <code>start</code> being inclusive and "
+ "<code>end</code> being exclusive.",
parameters = {
@Param(name = "self", type = String.class, doc = "This string."),