dylanenabled opened a new issue #1426:
URL: https://github.com/apache/camel-k/issues/1426


   The kotlin documentation here 
https://camel.apache.org/camel-k/latest/languages/kotlin.html is incorrect for 
the kotlin dsl (registry and component configurations).
   
   it says `context` when it should say `camel` 
   ```kotlin
   context {
       registry {
           bind("my-cache", Caffeine.newBuilder().build()) 
           bind("my-processor", processor { 
               e -> e.getIn().body = "Hello"
           })
           bind("my-predicate", predicate { 
               e -> e.getIn().body != null
           })
       }
   }
   ```
   
   should be 
   
   ```kotlin
   camel {
       registry {
           bind("my-cache", Caffeine.newBuilder().build()) 
           bind("my-processor", processor { 
               e -> e.getIn().body = "Hello"
           })
           bind("my-predicate", predicate { 
               e -> e.getIn().body != null
           })
       }
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to