Skip to content

Commit

Permalink
Make tutorial page titles standard (MystenLabs#2278)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored May 27, 2022
1 parent de90541 commit 873753d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
4 changes: 3 additions & 1 deletion doc/src/build/programming-with-objects/ch1-object-basics.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Chapter 1: Object Basics
---
title: Chapter 1: Object Basics
---

### Define Sui Object
In Move, besides primitive data types, we can define organized data structures using `struct`. For example:
Expand Down
4 changes: 3 additions & 1 deletion doc/src/build/programming-with-objects/ch2-using-objects.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Chapter 2: Using Objects
---
title: Chapter 2: Using Objects
---

In [Chapter 1](./ch1-object-basics.md) we covered how to define, create and take ownership of a Sui object in Move. In this chapter we will look at how to use objects that you own in Move calls.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Chapter 3: Immutable Objects
---
title: Chapter 3: Immutable Objects
---

In chapters 1 and 2, we learned how to create and use objects owned by an account address. In this chapter, we will demonstrate how to create and use immutable objects.

Objects in Sui can have different types of [ownership](../objects.md#object-ownership), with two broad categories: immutable objects and mutable objects. An immutable object is an object that can **never** be mutated, transferred or deleted. Because of this immutability, the object is not owned by anyone, and hence it can be used by anyone.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Chapter 4: Object Wrapping
---
title: Chapter 4: Object Wrapping
---

In many programming languages, we organize data structures in layers by nesting complex data structures in another data structure. In Move, you may do the same by putting a field of `struct` type in another, like the following:
```rust
struct Foo has key {
Expand Down
5 changes: 4 additions & 1 deletion doc/src/build/programming-with-objects/ch5-child-objects.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Chapter 5: Child Objects
---
title: Chapter 5: Child Objects
---

In the previous chapter, we walked through various ways of wrapping an object in another object. There are a few limitations in object wrapping:
1. A wrapped object can be accessed only via its wrapper. It cannot be used directly in a transaction or queried by its ID (e.g., in the explorer).
2. An object can become very large if it wraps several other objects. Larger objects can lead to higher gas fees in transactions. In addition, there is an upper bound on object size.
Expand Down

0 comments on commit 873753d

Please sign in to comment.