Skip to content

Commit

Permalink
Fix incorrect code in README files (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisaruGuruge authored Aug 2, 2024
1 parent 48e2d9f commit 0877c46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The `graphql:Listener` is used to listen to a given IP/Port. To create a `graphq
```ballerina
import ballerina/graphql;
listener graphql:Listener graphqlListener = new(4000);
listener graphql:Listener graphqlListener = check new(4000);
```

### Create a `graphql:Listener` using an `http:Listener`
Expand All @@ -34,7 +34,7 @@ import ballerina/graphql;
import ballerina/http;
listener http:Listener httpListener = check new(4000);
listener graphql:Listener graphqlListener = new(httpListener);
listener graphql:Listener graphqlListener = check new(httpListener);
```

## Service
Expand Down
4 changes: 2 additions & 2 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The `graphql:Listener` is used to listen to a given IP/Port. To create a `graphq
```ballerina
import ballerina/graphql;
listener graphql:Listener graphqlListener = new(4000);
listener graphql:Listener graphqlListener = check new(4000);
```

### Create a `graphql:Listener` using an `http:Listener`
Expand All @@ -25,7 +25,7 @@ import ballerina/graphql;
import ballerina/http;
listener http:Listener httpListener = check new(4000);
listener graphql:Listener graphqlListener = new(httpListener);
listener graphql:Listener graphqlListener = check new(httpListener);
```

## Service
Expand Down
4 changes: 2 additions & 2 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The `graphql:Listener` is used to listen to a given IP/Port. To create a `graphq
```ballerina
import ballerina/graphql;
listener graphql:Listener graphqlListener = new(4000);
listener graphql:Listener graphqlListener = check new(4000);
```

### Create a `graphql:Listener` using an `http:Listener`
Expand All @@ -25,7 +25,7 @@ import ballerina/graphql;
import ballerina/http;
listener http:Listener httpListener = check new(4000);
listener graphql:Listener graphqlListener = new(httpListener);
listener graphql:Listener graphqlListener = check new(httpListener);
```

## Service
Expand Down

0 comments on commit 0877c46

Please sign in to comment.