diff --git a/docs/modules/introduction/pages/use-cases.adoc b/docs/modules/introduction/pages/use-cases.adoc index 6ee00c99..fd10674d 100644 --- a/docs/modules/introduction/pages/use-cases.adoc +++ b/docs/modules/introduction/pages/use-cases.adoc @@ -22,7 +22,7 @@ At the same time, anyone configuring your application -- whether that's your use + At the time of writing, Pkl offers configuration libraries for the JVM runtime, Swift, and also for Golang. + -We maintian the following libraries: +We maintain the following libraries: + * xref:java-binding:pkl-config-java.adoc[pkl-config-java] for Java compatible languages * xref:kotlin-binding:pkl-config-kotlin.adoc[pkl-config-kotlin] for the {uri-kotlin-homepage}[Kotlin] language. diff --git a/docs/modules/kotlin-binding/pages/codegen.adoc b/docs/modules/kotlin-binding/pages/codegen.adoc index 7e23cdee..a59a7a57 100644 --- a/docs/modules/kotlin-binding/pages/codegen.adoc +++ b/docs/modules/kotlin-binding/pages/codegen.adoc @@ -103,7 +103,7 @@ To run the CLI, execute the library Jar or its `org.pkl.codegen.kotlin.Main` mai *Synopsis:* `java -cp -jar pkl-codegen-kotlin.jar [] ` ``:: -The absolute or relative URIs of the modules to generate classe for. +The absolute or relative URIs of the modules to generate classes for. Relative URIs are resolved against the working directory. ==== Options diff --git a/docs/modules/language-reference/pages/index.adoc b/docs/modules/language-reference/pages/index.adoc index 2c3542a9..e65e7ffe 100644 --- a/docs/modules/language-reference/pages/index.adoc +++ b/docs/modules/language-reference/pages/index.adoc @@ -269,7 +269,7 @@ Floats support the same comparison and arithmetic operators as integers. Float literals with zero fractional part can be safely replaced with integer literals. For example, it is safe to write `1.3 * 42` instead of `1.3 * 42.0`. -Floats can also include the same underscore separater as integers. For example, `1_000.4_400` is a float whose value is equivalent to `1000.4400`. +Floats can also include the same underscore separator as integers. For example, `1_000.4_400` is a float whose value is equivalent to `1000.4400`. TIP: As integers are more convenient to use than floats with zero fractional part, we recommend to require `x: Number` instead of `x: Float` in type annotations. @@ -3363,7 +3363,7 @@ list3 = List(1, "x", 5.min, List(1, 2, 3)) // <3> ---- <1> result: empty list <2> result: list of length 3 -<3> result: heterogenous list whose last element is another list +<3> result: heterogeneous list whose last element is another list To concatenate lists, use the `+` operator: @@ -3420,7 +3420,7 @@ res4 = Set(1, "x", 5.min, List(1, 2, 3)) // <4> <1> result: empty set <2> result: set of length 3 <3> result: same set of length 3 -<4> result: heterogenous set that contains a list as its last element +<4> result: heterogeneous set that contains a list as its last element To compute the union of sets, use the `+` operator: @@ -3836,7 +3836,7 @@ More complex union types can be formed: foo: List|Bird ---- -Union types have no implicit default values, but an explicit type can be choosen using a `*` marker: +Union types have no implicit default values, but an explicit type can be chosen using a `*` marker: [source%parsed,{pkl}] ---- foo: "a"|"b" // undefined. Will throw an error if not amended @@ -3997,7 +3997,7 @@ pigeon: Bird = new { ---- <1> Restricts `name` to have at least three characters. <2> The name of the bird (`this`) should not be the same as the name of the `parent`. -<3> Note how `parent` is different from `name`. If they were the same, we would be thrown a contraint error. +<3> Note how `parent` is different from `name`. If they were the same, we would be thrown a constraint error. In the following example, we define a `Bird` with a name of only two characters. @@ -5024,7 +5024,7 @@ To answer this question, Pkl follows these steps: If a match is found, this is the answer. . Search the `pkl.base` module for a top-level definition of method `x`. If a match is found, this is the answer. -. Seach the class inheritance chain of `this`, starting with the class of `this` +. Search the class inheritance chain of `this`, starting with the class of `this` and continuing upwards until and including class `Any`, for a method named `x.` If a match is found, this is the answer. . Throw a "method `x` not found" error. diff --git a/docs/modules/pkl-cli/pages/index.adoc b/docs/modules/pkl-cli/pages/index.adoc index 4f8a33b2..26b77527 100644 --- a/docs/modules/pkl-cli/pages/index.adoc +++ b/docs/modules/pkl-cli/pages/index.adoc @@ -366,7 +366,7 @@ This command also takes <>. [[command-server]] === `pkl server` -*Synopsys:* `pkl server` +*Synopsis:* `pkl server` Run as a server that communicates over standard input/output. @@ -375,7 +375,7 @@ This option is used for embedding Pkl in an external client, such as xref:swift: [[command-test]] === `pkl test` -*Synopsys:* `pkl test [] []` +*Synopsis:* `pkl test [] []` Evaluate the given `` as _tests_, producing a test report and appropriate exit code. @@ -410,7 +410,7 @@ This command also takes <>. [[command-repl]] === `pkl repl` -*Synopsys:* `pkl repl []` +*Synopsis:* `pkl repl []` Start a REPL session. diff --git a/docs/modules/pkl-cli/partials/cli-common-options.adoc b/docs/modules/pkl-cli/partials/cli-common-options.adoc index 7f31c8d0..1198eb94 100644 --- a/docs/modules/pkl-cli/partials/cli-common-options.adoc +++ b/docs/modules/pkl-cli/partials/cli-common-options.adoc @@ -32,7 +32,7 @@ The cache directory for storing packages. .--no-cache [%collapsible] ==== -Disable cacheing of packages. +Disable caching of packages. ==== .-e, --env-var diff --git a/docs/modules/pkl-gradle/pages/index.adoc b/docs/modules/pkl-gradle/pages/index.adoc index 5af2d87c..de9f3d0b 100644 --- a/docs/modules/pkl-gradle/pages/index.adoc +++ b/docs/modules/pkl-gradle/pages/index.adoc @@ -626,7 +626,7 @@ Default: `false` + Whether to ignore expected example files and generate them again. ==== -Common propeties: +Common properties: include::../partials/gradle-common-properties.adoc[] @@ -688,6 +688,6 @@ Example: `projectDirectories.from(file("pkl-config/""))` + The project directories to create packages for. ==== -Common propeties: +Common properties: include::../partials/gradle-common-properties.adoc[] diff --git a/docs/modules/pkl-gradle/partials/gradle-common-properties.adoc b/docs/modules/pkl-gradle/partials/gradle-common-properties.adoc index de2152d3..c1498786 100644 --- a/docs/modules/pkl-gradle/partials/gradle-common-properties.adoc +++ b/docs/modules/pkl-gradle/partials/gradle-common-properties.adoc @@ -72,7 +72,7 @@ If `null`, defaults to `~/.pkl/cache`. [%collapsible] ==== Default: `false` + -Disable cacheing of packages. +Disable caching of packages. ==== .modulePath: ConfigurableFileCollection diff --git a/docs/modules/style-guide/pages/index.adoc b/docs/modules/style-guide/pages/index.adoc index 09b58f76..3728cdca 100644 --- a/docs/modules/style-guide/pages/index.adoc +++ b/docs/modules/style-guide/pages/index.adoc @@ -254,7 +254,7 @@ myFoo1: Foo = new Foo { foo = "bar" } // <1> myFoo2 = new Foo { foo = "bar" } // <2> ---- <1> Unnecessary `new Foo { ... }` -<2> Unless amending/extendinge a module where `myFoo2` is already defined, `myFoo2` is effectively the `unknown` type, i.e. `myFoo2: unknown`. +<2> Unless amending/extending a module where `myFoo2` is already defined, `myFoo2` is effectively the `unknown` type, i.e. `myFoo2: unknown`. == Comments @@ -270,7 +270,7 @@ Add a single space after `///`. [source%parsed,{pkl}] ---- -/// The time alotted for eating lunch. +/// The time allotted for eating lunch. /// /// Note: /// * Hamburgers typically take longer to eat than salad. @@ -300,7 +300,7 @@ A line comment may also be placed at the end of a line, as long as the line does [source%tested,{pkl}] ---- /// Designates whether it is zebra party time. -partyTime: Booleean // TODO: Add constraints here? +partyTime: Boolean // TODO: Add constraints here? ---- === Block comments diff --git a/pkl-cli/src/main/kotlin/org/pkl/cli/commands/ProjectCommand.kt b/pkl-cli/src/main/kotlin/org/pkl/cli/commands/ProjectCommand.kt index 7ee9615e..033abcd4 100644 --- a/pkl-cli/src/main/kotlin/org/pkl/cli/commands/ProjectCommand.kt +++ b/pkl-cli/src/main/kotlin/org/pkl/cli/commands/ProjectCommand.kt @@ -85,7 +85,7 @@ class ProjectCommand(helpLink: String) : This command runs a project's api tests, as defined by `apiTests` in `PklProject`. Additionally, it verifies that all imports resolve to paths that are local to the project. - Finally, this command writes the folowing artifacts into the output directory specified by the output path. + Finally, this command writes the following artifacts into the output directory specified by the output path. - `name@version` - dependency metadata$NEWLINE - `name@version.sha256` - dependency metadata's SHA-256 checksum$NEWLINE diff --git a/pkl-cli/src/test/kotlin/org/pkl/cli/CliDownloadPackageCommandTest.kt b/pkl-cli/src/test/kotlin/org/pkl/cli/CliDownloadPackageCommandTest.kt index 97b7a44c..50c469ae 100644 --- a/pkl-cli/src/test/kotlin/org/pkl/cli/CliDownloadPackageCommandTest.kt +++ b/pkl-cli/src/test/kotlin/org/pkl/cli/CliDownloadPackageCommandTest.kt @@ -143,7 +143,7 @@ class CliDownloadPackageCommandTest { } @Test - fun `disabling cacheing is an error`(@TempDir tempDir: Path) { + fun `disabling caching is an error`(@TempDir tempDir: Path) { val cmd = CliDownloadPackageCommand( baseOptions = CliBaseOptions(workingDir = tempDir, noCache = true), diff --git a/pkl-cli/src/test/kotlin/org/pkl/cli/CliMainTest.kt b/pkl-cli/src/test/kotlin/org/pkl/cli/CliMainTest.kt index d81867e5..f07dca5c 100644 --- a/pkl-cli/src/test/kotlin/org/pkl/cli/CliMainTest.kt +++ b/pkl-cli/src/test/kotlin/org/pkl/cli/CliMainTest.kt @@ -35,7 +35,7 @@ class CliMainTest { private val cmd = RootCommand("pkl", "pkl version 1", "").subcommands(evalCmd) @Test - fun `duplicate CLI option produces meaningful errror message`(@TempDir tempDir: Path) { + fun `duplicate CLI option produces meaningful error message`(@TempDir tempDir: Path) { val inputFile = tempDir.resolve("test.pkl").writeString("").toString() assertThatCode { diff --git a/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectPackagerTest.kt b/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectPackagerTest.kt index f885cc7f..94744970 100644 --- a/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectPackagerTest.kt +++ b/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectPackagerTest.kt @@ -52,7 +52,7 @@ class CliProjectPackagerTest { } @Test - fun `missing PklProject when explict dir is provided`(@TempDir tempDir: Path) { + fun `missing PklProject when explicit dir is provided`(@TempDir tempDir: Path) { val packager = CliProjectPackager( CliBaseOptions(workingDir = tempDir), diff --git a/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectResolverTest.kt b/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectResolverTest.kt index 068d84ba..9118b49f 100644 --- a/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectResolverTest.kt +++ b/pkl-cli/src/test/kotlin/org/pkl/cli/CliProjectResolverTest.kt @@ -50,7 +50,7 @@ class CliProjectResolverTest { } @Test - fun `missing PklProject when explict dir is provided`(@TempDir tempDir: Path) { + fun `missing PklProject when explicit dir is provided`(@TempDir tempDir: Path) { val packager = CliProjectResolver( CliBaseOptions(), diff --git a/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/commands/BaseOptions.kt b/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/commands/BaseOptions.kt index 3c03eff4..561c62f6 100644 --- a/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/commands/BaseOptions.kt +++ b/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/commands/BaseOptions.kt @@ -94,7 +94,7 @@ class BaseOptions : OptionGroup() { .associate() val noCache: Boolean by - option(names = arrayOf("--no-cache"), help = "Disable cacheing of packages") + option(names = arrayOf("--no-cache"), help = "Disable caching of packages") .single() .flag(default = false) diff --git a/pkl-commons-test/src/main/kotlin/org/pkl/commons/test/PackageServer.kt b/pkl-commons-test/src/main/kotlin/org/pkl/commons/test/PackageServer.kt index 230f19b1..58150f8c 100644 --- a/pkl-commons-test/src/main/kotlin/org/pkl/commons/test/PackageServer.kt +++ b/pkl-commons-test/src/main/kotlin/org/pkl/commons/test/PackageServer.kt @@ -119,11 +119,11 @@ object PackageServer { fun ensureStarted() = synchronized(this) { if (!started) { - // Crude hack to make sure that parrallel tests don't try and use each others mock server + // Crude hack to make sure that parallel tests don't try and use each others mock server // otherwise you get flaky tests when a server instance is shutdown by one set of tests // while another set of tests is still relying on it. // Side effect is that tests that spin up a mock package server are now serialised, rather - // than running in parrallel. But that seems like a reasonable tradeoff to avoid flaky + // than running in parallel. But that seems like a reasonable tradeoff to avoid flaky // tests. for (i in 1..20) { try { @@ -134,7 +134,7 @@ object PackageServer { return@synchronized } catch (_: BindException) { println( - "Port $PORT in use after $i/20 attempt(s), probably another test running in parrallel. Sleeping for 1 second and trying again" + "Port $PORT in use after $i/20 attempt(s), probably another test running in parallel. Sleeping for 1 second and trying again" ) Thread.sleep(1000) } diff --git a/pkl-config-java/src/main/java/org/pkl/config/java/mapper/ConverterFactory.java b/pkl-config-java/src/main/java/org/pkl/config/java/mapper/ConverterFactory.java index 7846a6ee..0be18af3 100644 --- a/pkl-config-java/src/main/java/org/pkl/config/java/mapper/ConverterFactory.java +++ b/pkl-config-java/src/main/java/org/pkl/config/java/mapper/ConverterFactory.java @@ -26,7 +26,7 @@ import org.pkl.core.PClassInfo; * for every parameterization of the target type. Once created, the converter is cached for later * use, and the factory is never again invoked for the same parameterized target type. * - *

For best performace, all introspection of target types (for example using {@link Reflection}) + *

For best performance, all introspection of target types (for example using {@link Reflection}) * should happen in the factory rather then the returned converters. */ @FunctionalInterface diff --git a/pkl-core/src/main/java/org/pkl/core/SecurityManagerException.java b/pkl-core/src/main/java/org/pkl/core/SecurityManagerException.java index f4c6c315..e7ae124f 100644 --- a/pkl-core/src/main/java/org/pkl/core/SecurityManagerException.java +++ b/pkl-core/src/main/java/org/pkl/core/SecurityManagerException.java @@ -16,7 +16,7 @@ package org.pkl.core; /** - * A SecurityManagerException declares that a violation occured during an external i/o operation. + * A SecurityManagerException declares that a violation occurred during an external i/o operation. * *

{@link SecurityManagerException#getMessage()} is passed to users when errors arise. */ diff --git a/pkl-core/src/main/java/org/pkl/core/ValueRenderers.java b/pkl-core/src/main/java/org/pkl/core/ValueRenderers.java index f902450a..4e17202e 100644 --- a/pkl-core/src/main/java/org/pkl/core/ValueRenderers.java +++ b/pkl-core/src/main/java/org/pkl/core/ValueRenderers.java @@ -60,7 +60,7 @@ public final class ValueRenderers { * Creates a renderer for {@link java.util.Properties} file format. If {@code omitNullProperties} * is {@code true}, object properties and map entries whose value is {@code null} will not be * rendered. If {@code restrictCharset} is {@code true} characters outside the printable US-ASCII - * charset range will be rendererd as Unicode escapes (see + * charset range will be rendered as Unicode escapes (see * https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.3). */ public static ValueRenderer properties( diff --git a/pkl-core/src/main/java/org/pkl/core/ast/expression/generator/GeneratorPredicateMemberNode.java b/pkl-core/src/main/java/org/pkl/core/ast/expression/generator/GeneratorPredicateMemberNode.java index 5a3cb871..389c5985 100644 --- a/pkl-core/src/main/java/org/pkl/core/ast/expression/generator/GeneratorPredicateMemberNode.java +++ b/pkl-core/src/main/java/org/pkl/core/ast/expression/generator/GeneratorPredicateMemberNode.java @@ -84,7 +84,7 @@ public abstract class GeneratorPredicateMemberNode extends GeneratorMemberNode { var visitedKeys = EconomicSets.create(); // do our own traversal instead of relying on `VmAbstractObject.force/iterateMemberValues` - // (more efficent and we don't want to execute `predicateNode` behind Truffle boundary) + // (more efficient and we don't want to execute `predicateNode` behind Truffle boundary) for (var owner = parent; owner != null; owner = owner.getParent()) { var entries = EconomicMaps.getEntries(owner.getMembers()); while (entries.advance()) { diff --git a/pkl-core/src/main/java/org/pkl/core/module/ModuleKeys.java b/pkl-core/src/main/java/org/pkl/core/module/ModuleKeys.java index d6257fb9..e060ddb9 100644 --- a/pkl-core/src/main/java/org/pkl/core/module/ModuleKeys.java +++ b/pkl-core/src/main/java/org/pkl/core/module/ModuleKeys.java @@ -516,7 +516,7 @@ public final class ModuleKeys { protected Pair parseDependencyNotation(String importPath) { var idx = importPath.indexOf('/'); if (idx == -1) { - // treat named dependency wihout a subpath as the root path. + // treat named dependency without a subpath as the root path. // i.e. resolve to `@foo` to `package://example.com/foo@1.0.0#/` return Pair.of(importPath.substring(1), "/"); } diff --git a/pkl-core/src/main/java/org/pkl/core/packages/PackageResolvers.java b/pkl-core/src/main/java/org/pkl/core/packages/PackageResolvers.java index 73a7cc3e..a0fde8e6 100644 --- a/pkl-core/src/main/java/org/pkl/core/packages/PackageResolvers.java +++ b/pkl-core/src/main/java/org/pkl/core/packages/PackageResolvers.java @@ -399,7 +399,7 @@ class PackageResolvers { } /** - * Resolves packages, cacheing them to disk. + * Resolves packages, caching them to disk. * *

Uses the built-in zip file system in {@link jdk.nio.zipfs} for reading files from the zip * archive. @@ -480,12 +480,12 @@ class PackageResolvers { PackageUri packageUri, URI requestUri, @Nullable Checksums checksums) throws IOException, SecurityManagerException { var metadataFileName = getLastSegmentName(packageUri) + ".json"; - var metdataRelativePath = getRelativePath(packageUri).resolve(metadataFileName); - var cachePath = cacheDir.resolve(metdataRelativePath); + var metadataRelativePath = getRelativePath(packageUri).resolve(metadataFileName); + var cachePath = cacheDir.resolve(metadataRelativePath); if (Files.exists(cachePath)) { return cachePath; } - var tmpPath = tmpDir.resolve(metdataRelativePath); + var tmpPath = tmpDir.resolve(metadataRelativePath); try { downloadMetadata(packageUri, requestUri, tmpPath, checksums); Files.createDirectories(cachePath.getParent()); @@ -600,7 +600,7 @@ class PackageResolvers { var path = getZipFileSystem(uri, checksums).getPath(uri.getUri().getFragment()); if (Files.isDirectory(path)) { if (allowDirectories) { - // mimick the format that we get when reading a `file:` directory + // mimic the format that we get when reading a `file:` directory try (var paths = Files.list(path)) { var text = paths diff --git a/pkl-core/src/main/java/org/pkl/core/project/Project.java b/pkl-core/src/main/java/org/pkl/core/project/Project.java index 3a311a22..10cc701e 100644 --- a/pkl-core/src/main/java/org/pkl/core/project/Project.java +++ b/pkl-core/src/main/java/org/pkl/core/project/Project.java @@ -62,7 +62,7 @@ public final class Project { *

Evaluates a module's {@code output.value} to allow for embedding a project within a * template. * - * @throws PklException if an error occured while evaluating the project file. + * @throws PklException if an error occurred while evaluating the project file. */ public static Project loadFromPath( Path path, diff --git a/pkl-core/src/main/java/org/pkl/core/project/ProjectDeps.java b/pkl-core/src/main/java/org/pkl/core/project/ProjectDeps.java index 939f25f6..86c246de 100644 --- a/pkl-core/src/main/java/org/pkl/core/project/ProjectDeps.java +++ b/pkl-core/src/main/java/org/pkl/core/project/ProjectDeps.java @@ -45,7 +45,7 @@ import org.pkl.core.util.json.JsonWriter; /** * The Java representation of a project's resolved dependency list. Resolved dependencies are stored * as JSON as a sibling file to PklProject. Each key in the JSON file records an entry for each - * dependecy via its base URI, and the major version number. + * dependency via its base URI, and the major version number. * *

A resolved dependency can either be local or remote. A remote dependency will have its * checksums recorded, while a local dependency will point to the relative path of the project @@ -100,7 +100,7 @@ public class ProjectDeps { private static EconomicMap parseResolvedDependencies( Object object) throws JsonParseException, URISyntaxException { if (!(object instanceof JsObject)) { - throw new FormatException("resolvedDendencies", "object", object.getClass()); + throw new FormatException("resolvedDependencies", "object", object.getClass()); } var jsObj = (JsObject) object; var ret = EconomicMaps.create(jsObj.size()); diff --git a/pkl-core/src/main/java/org/pkl/core/runtime/FileSystemManager.java b/pkl-core/src/main/java/org/pkl/core/runtime/FileSystemManager.java index 0b697050..6e3fcf8f 100644 --- a/pkl-core/src/main/java/org/pkl/core/runtime/FileSystemManager.java +++ b/pkl-core/src/main/java/org/pkl/core/runtime/FileSystemManager.java @@ -70,7 +70,7 @@ public class FileSystemManager { } /** - * Possibily close this file system. Will not close if the file system was initialized externally + * Possibly close this file system. Will not close if the file system was initialized externally * to Pkl. */ private static synchronized void close(Handle fs) throws IOException { diff --git a/pkl-core/src/main/resources/org/pkl/core/errorMessages.properties b/pkl-core/src/main/resources/org/pkl/core/errorMessages.properties index b86af7a1..d55cf159 100644 --- a/pkl-core/src/main/resources/org/pkl/core/errorMessages.properties +++ b/pkl-core/src/main/resources/org/pkl/core/errorMessages.properties @@ -200,7 +200,7 @@ objectSpreadDuplicateEntry=\ Cannot spread object because the enclosing object already has a declaration of entry key `{0}`. objectSpreadDuplicateProperty=\ -Cannot spread object because the enclosing object already has a delcaration of property `{0}`. +Cannot spread object because the enclosing object already has a declaration of property `{0}`. cannotSpreadObject=\ Cannot spread value of type `{0}` into object of type `{1}`. @@ -842,7 +842,7 @@ stackOverflow=\ A stack overflow occurred. multipleUnionDefaults=\ -A type union cannnot have more than one default type. +A type union cannot have more than one default type. notAUnion=\ Only type unions can have a default marker (*). diff --git a/pkl-core/src/test/files/LanguageSnippetTests/output/errors/multipleDefaults.err b/pkl-core/src/test/files/LanguageSnippetTests/output/errors/multipleDefaults.err index 5ff3923d..d92b022a 100644 --- a/pkl-core/src/test/files/LanguageSnippetTests/output/errors/multipleDefaults.err +++ b/pkl-core/src/test/files/LanguageSnippetTests/output/errors/multipleDefaults.err @@ -1,5 +1,5 @@ –– Pkl Error –– -A type union cannnot have more than one default type. +A type union cannot have more than one default type. x | foo: *Int|*String|*"foo" ^^^^^^^^^^^^^^^^^^^ diff --git a/pkl-core/src/test/files/LanguageSnippetTests/output/errors/spreadSyntaxDuplicateProperty2.err b/pkl-core/src/test/files/LanguageSnippetTests/output/errors/spreadSyntaxDuplicateProperty2.err index e0e5894c..b33ba7ba 100644 --- a/pkl-core/src/test/files/LanguageSnippetTests/output/errors/spreadSyntaxDuplicateProperty2.err +++ b/pkl-core/src/test/files/LanguageSnippetTests/output/errors/spreadSyntaxDuplicateProperty2.err @@ -1,5 +1,5 @@ –– Pkl Error –– -Cannot spread object because the enclosing object already has a delcaration of property `foo`. +Cannot spread object because the enclosing object already has a declaration of property `foo`. x | ...source ^^^^^^^^^ diff --git a/pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/modulePropertyComments.pkl b/pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/modulePropertyComments.pkl index baa5f4e6..3318b8f3 100644 --- a/pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/modulePropertyComments.pkl +++ b/pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/modulePropertyComments.pkl @@ -38,7 +38,7 @@ property7: Float = 3.14159265359 /// Rest of the body property8: Int = 0 -/// Sumary +/// Summary /// ```java /// /// code = 0 diff --git a/pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/modulePropertyCommentInheritance/index.html b/pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/modulePropertyCommentInheritance/index.html index 8c9015f4..5d17613d 100644 --- a/pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/modulePropertyCommentInheritance/index.html +++ b/pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/modulePropertyCommentInheritance/index.html @@ -166,7 +166,7 @@ code = 4 * 10

-

Sumary

+

Summary

property9: IntSource
-

Sumary

+

Summary