Skip to content

Commit 2f9a412

Browse files
authored
Update README.md
1 parent e6e17f9 commit 2f9a412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ GraphQLRxSwift provides an `ObservableEventStream` wrapper class that can be use
3232
`EventStream` requirements. A convenience method `toEventStream` is added to all Observable instances.
3333
This class is used when defining subscription resolvers, as shown below:
3434

35-
```
35+
```swift
3636
func subscribeUser(context: HelloContext, arguments: NoArguments) -> EventStream<Any> {
3737
PublishSubject<Any>().toEventStream()
3838
}
@@ -42,7 +42,7 @@ Also provided is a `ObservableSubscriptionEventStream` type alias that can be us
4242
It is guaranteed that the stream returned by any subscription query whose resolver returns an `ObservableEventStream` will be a
4343
`ObservableSubscriptionEventStream`. For example:
4444

45-
```
45+
```swift
4646
let subscriptionResult = try graphQLApi.subscribe(
4747
request: request,
4848
context: api.context,

0 commit comments

Comments
 (0)