Skip to content
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

[docs] Fix some errors in doc #4012

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 4 additions & 6 deletions docs/manual/basics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ struct MyPair:
self.first = first
self.second = second

fn __copyinit__(out self, existing other):
fn __copyinit__(out self, existing: Self):
self.first = existing.first
self.second = existing.second

Expand Down Expand Up @@ -393,7 +393,7 @@ This function has one parameter of type `Int` and one argument of type
argument:

```mojo
defining call_repeat():
def call_repeat():
repeat[3]("Hello")
# Prints "Hello" 3 times
```
Expand All @@ -416,8 +416,7 @@ For more detail on parameters, see the section on

## Python integration

Mojo supports the ability to import
Python modules as-is, so you can leverage existing Python code right away.
Mojo supports the ability to import Python modules as-is, so you can leverage existing Python code right away.

For example, here's how you can import and use NumPy:

Expand All @@ -444,8 +443,7 @@ Hopefully this page has given you enough information to start experimenting with
Mojo, but this is only touching the surface of what's available in Mojo.

If you're in the mood to read more, continue through each page of this
Mojo Manual—the next page from
here is [Functions](/mojo/manual/functions).
Mojo Manual—the next page from here is [Functions](/mojo/manual/functions).

Otherwise, here are some other resources to check out:

Expand Down
Loading