diff --git a/scala/scalafmt/private/format-test.template.sh b/scala/scalafmt/private/format-test.template.sh index 0648ff52d7..c6d475f8c4 100644 --- a/scala/scalafmt/private/format-test.template.sh +++ b/scala/scalafmt/private/format-test.template.sh @@ -3,7 +3,7 @@ # Explanation: IF $BUILD_WORKSPACE_DIRECTORY is set to something (as it would be during a # `bazel run`), then append a trailing `/`. If it's not set (as it wouldn't be during # a `bazel test` invocation in a wrapping `sh_test` rule), then elide the trailing `/`, and -# instead rely upon a relative path from the test's runtrees. The corresponding change +# instead rely upon a relative path from the test's runfiles tree. The corresponding change # to `phase_scalafmt` places the source files into the `runfiles` set, so they'll be symlinked # correctly in the appropriate relative location. WORKSPACE_ROOT="${1:-${BUILD_WORKSPACE_DIRECTORY}${BUILD_WORKSPACE_DIRECTORY:+/}}"