Skip to content

Commit dd90bdf

Browse files
author
Henri-Mayeul de Benque
authored
Pretty sure java cannot have local static field and miss a semicolon
1 parent e0021c5 commit dd90bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/documentation/programming-guide.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ The following example code shows how to create a `PCollection` from an in-memory
339339
```java
340340
public static void main(String[] args) {
341341
// Create a Java Collection, in this case a List of Strings.
342-
static final List<String> LINES = Arrays.asList(
342+
final List<String> LINES = Arrays.asList(
343343
"To be, or not to be: that is the question: ",
344344
"Whether 'tis nobler in the mind to suffer ",
345345
"The slings and arrows of outrageous fortune, ",
@@ -351,7 +351,7 @@ public static void main(String[] args) {
351351
Pipeline p = Pipeline.create(options);
352352

353353
// Apply Create, passing the list and the coder, to create the PCollection.
354-
p.apply(Create.of(LINES)).setCoder(StringUtf8Coder.of())
354+
p.apply(Create.of(LINES)).setCoder(StringUtf8Coder.of());
355355
}
356356
```
357357
```py

0 commit comments

Comments
 (0)