Forráskód Böngészése

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 éve
szülő
commit
e1d71454eb

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

@@ -35,7 +35,7 @@ public:
     virtual ~ReadableStream() override;
     virtual ~ReadableStream() override;
 
 
     bool locked() const;
     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();
     WebIDL::ExceptionOr<ReadableStreamReader> get_reader();
 
 
     Optional<ReadableStreamController>& controller() { return m_controller; }
     Optional<ReadableStreamController>& controller() { return m_controller; }