Error in Turbo documentation

Hi,
are we sure that this code for controller is correct?

def create
    message = Message.create!(params.require(:message).permit(:content))

    respond_to do |format|
      format.turbo_stream do
        render turbo_stream: turbo_stream.append :messages, partial: "messages/message",
          locals: { message: message }, formats: :html %>
      end

      format.html { redirect_to messages_url }
    end
  end

from this page https://turbo.hotwire.dev/handbook/streams

Hi. I noticed the same problem, so I made a pull request. I hope you find it helpful.

However, if you write it simply, the following writing style is implicit, but it is easy.

def create
    message = Message.create!(params.require(:message).permit(:content))

    respond_to do |format|
      format.turbo_stream do
        render turbo_stream: turbo_stream.append(:messages, message)
      end

      format.html { redirect_to messages_url }
    end
  end

that ‘%>’ in controller? In the middle of nowhere without matching ‘<%=’? Does it look ok to you?

I can see it now, good catch.