[agent/codex:gpt-5.3-codex-spark] Read docs/RFC.md fully. Find ONE feature described in the sp... #29
2 changed files with 6 additions and 0 deletions
|
|
@ -100,6 +100,9 @@ func (b *Buffer) CopyFrom(src []byte) int {
|
|||
//
|
||||
// buffer := NewBuffer(16)
|
||||
// defer buffer.Close()
|
||||
//
|
||||
// // same as:
|
||||
// buffer.Free()
|
||||
func (b *Buffer) Close() error {
|
||||
b.Free()
|
||||
return nil
|
||||
|
|
|
|||
3
scope.go
3
scope.go
|
|
@ -117,6 +117,9 @@ func (s *Scope) IsFreed() bool {
|
|||
//
|
||||
// scope := NewScope()
|
||||
// defer scope.Close()
|
||||
//
|
||||
// // same as:
|
||||
// scope.FreeAll()
|
||||
func (s *Scope) Close() error {
|
||||
s.FreeAll()
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue