Browse Source

LibWeb: Correct parameter name in Web::Streams::ReadableStream::cancel

This aligns with the name given in the implementation file and is a
better description of what is being passed in.
Shannon Booth 2 years ago
parent
commit
e1d71454eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibWeb/Streams/ReadableStream.h

+ 1 - 1
Userland/Libraries/LibWeb/Streams/ReadableStream.h

@@ -35,7 +35,7 @@ public:
     virtual ~ReadableStream() override;
 
     bool locked() const;
-    WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> cancel(JS::Value view);
+    WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> cancel(JS::Value reason);
     WebIDL::ExceptionOr<ReadableStreamReader> get_reader();
 
     Optional<ReadableStreamController>& controller() { return m_controller; }