Skip to content

Error with "|" in the documentation #1093

Description

@TheDeadOne

steps

  1. Open https://www.scala-sbt.org/1.x/docs/Parsing-Input.html#Combining+parsers
  2. Copy-paste line val color: Parser[String] = "blue" | "green" in sbt console or in build.sbt

problem

error: value | is not a member of String

expectation

A parser that succeeds if the input is "blue" or "green" as wrote in the documentation.

notes

sbt 1.2.8, 1.6.2
scala 2.12.10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions