Skip to content

Fix a typo, add the missing indentation for python code #1200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/Containers/Sections/BringYourOwnCode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ class Character {
code={
`# type Character {
class Character:
# name: String
def name(self):
return self._name
# name: String
def name(self):
return self._name

# homeWorld: Planet
def homeWorld(self):
return fetchHomeworld(self._homeworldID)
# homeWorld: Planet
def homeWorld(self):
return fetchHomeworld(self._homeworldID)

# friends: [Character]
def friends(self):
return map(fetchCharacter, self._friendIDs)
# friends: [Character]
def friends(self):
return map(fetchCharacter, self._friendIDs)
`}
/>
<Prism
Expand Down