Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Mar 11, 2024
1 parent 231d25c commit 1340fe1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Features:
- supports custom line separator
- supports comment character

⚠️ _Note that the `Format#acceptMissingField` option must be set to `false` to closely follow the RFC4180 specification.
⚠️ _Note that the `Format#acceptMissingField` option must be set to `false` to closely follow the RFC4180 specification.
The default value is currently `true` but will be reversed in the next major release._

## Examples
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/nbbrd/picocsv/Csv.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* <li> fast and efficient (no heap memory allocation)
* <li> designed to be embedded into other libraries as <a href="https://search.maven.org/artifact/com.github.nbbrd.picocsv/picocsv">an external dependency</a> or <a href="https://github.com/nbbrd/picocsv/blob/develop/src/main/java/nbbrd/picocsv/Csv.java">as a single-file source</a>
* <li> has a module-info that makes it compatible with <a href="https://www.baeldung.com/java-9-modularity">JPMS</a>
* <li> Java 7 minimum requirement
* <li> Java 8 minimum requirement
* </ul>
* <p>
* Features:
Expand All @@ -48,6 +48,9 @@
* <li> supports comment character
* </ul>
*
* ⚠️ <i></i>Note that the <code>Format#acceptMissingField</code> option must be set to <code>false</code> to closely follow the RFC4180 specification.
* The default value is currently <code>true</code> but will be reversed in the next major release.</i>
*
* @author Philippe Charles
*/
public final class Csv {
Expand Down Expand Up @@ -92,12 +95,12 @@ public static final class Format {
private static final char DEFAULT_DELIMITER = ',';
private static final char DEFAULT_QUOTE = '"';
private static final char DEFAULT_COMMENT = '#';
private static final boolean DEFAULT_MISSING_FIELD_ALLOWED = true;
private static final boolean DEFAULT_ACCEPT_MISSING_FIELD = true;

/**
* Predefined format as defined by <a href="https://tools.ietf.org/html/rfc4180">RFC 4180</a>.
*/
public static final Format RFC4180 = new Format(DEFAULT_SEPARATOR, DEFAULT_DELIMITER, DEFAULT_QUOTE, DEFAULT_COMMENT, DEFAULT_MISSING_FIELD_ALLOWED);
public static final Format RFC4180 = new Format(DEFAULT_SEPARATOR, DEFAULT_DELIMITER, DEFAULT_QUOTE, DEFAULT_COMMENT, DEFAULT_ACCEPT_MISSING_FIELD);

/**
* Predefined format as alias to {@link Format#RFC4180}.
Expand Down

0 comments on commit 1340fe1

Please sign in to comment.