diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 1055452..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Debug unit tests in library 'szun'", - "cargo": { - "args": [ - "test", - "--no-run", - "--lib", - "--package=szun" - ], - "filter": { - "name": "szun", - "kind": "lib" - } - }, - "args": [], - "cwd": "${workspaceFolder}" - }, - { - "type": "lldb", - "request": "launch", - "name": "Debug executable 'main'", - "cargo": { - "args": [ - "build", - "--bin=main", - "--package=szun" - ], - "filter": { - "name": "main", - "kind": "bin" - } - }, - "args": [], - "cwd": "${workspaceFolder}" - }, - { - "type": "lldb", - "request": "launch", - "name": "Debug unit tests in executable 'main'", - "cargo": { - "args": [ - "test", - "--no-run", - "--bin=main", - "--package=szun" - ], - "filter": { - "name": "main", - "kind": "bin" - } - }, - "args": [], - "cwd": "${workspaceFolder}" - } - ] -} \ No newline at end of file diff --git a/README.md b/README.md index 6262438..b82848f 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Type building functions are used to generate identifiers used in the constructio * `schema()` #### Example -This example produces an identifier representing block of 4 bytes, which can be used to construct a list containing that type. +This example produces an identifier representing a block of 4 bytes, which can be used to construct a list containing that type. ``` let type_id = block(4); let list = List::new(type_id); @@ -164,7 +164,7 @@ let target = Sequence::new(); println!("{}", original.get()); // prints "Hello, world!" println!("{}", target.get()); // prints "" -transfer(target, original); +transfer(target, original).ok(); println!("{}", original.get()); // prints "" println!("{}", target.get()); // prints "Hello, world!" @@ -182,7 +182,7 @@ let target = Sequence::new(); println!("{}", original.get()); // prints "Hello, world!" println!("{}", target.get()); // prints "" -copy(target, original); +copy(target, original).ok(); println!("{}", original.get()); // prints "Hello, world!" println!("{}", target.get()); // prints "Hello, world!"