Skip to content

Commit 83c4c7b

Browse files
pinin4fjordsclaude
andcommitted
Fix hl_lines offset in observers lesson onFilePublish code block
The highlight range was off by two, highlighting lines 25-28 instead of 23-26. The correct range covers the full onFilePublish method block (@OverRide, method signature, println, closing brace). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent af5640e commit 83c4c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/docs/side_quests/plugin_development/05_observers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ First, update `greet.nf` so the `SAY_HELLO` process publishes its output files:
387387

388388
Add an `onFilePublish` method and the required import to `TaskCounterObserver.groovy`:
389389

390-
```groovy title="nf-greeting/src/main/groovy/training/plugin/TaskCounterObserver.groovy" linenums="1" hl_lines="5 25-28"
390+
```groovy title="nf-greeting/src/main/groovy/training/plugin/TaskCounterObserver.groovy" linenums="1" hl_lines="5 23-26"
391391
package training.plugin
392392
393393
import groovy.transform.CompileStatic

0 commit comments

Comments
 (0)