Skip to content

Commit 9f5baa3

Browse files
petrmitrichevcopybara-github
authored andcommitted
Switch from the deprecated .freeze() API to the recommended .freeze_bag() API. This is a no-op change.
PiperOrigin-RevId: 713634743 Change-Id: I610739aeaea4846f559edaab68c6c1f336d534cf
1 parent 6e480f7 commit 9f5baa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cheatsheet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ db2.data_triples_repr()
22422242
db2.schema_triples_repr()
22432243

22442244
# Create a new mutable bag by forking the bag
2245-
db3 = db2.fork_bag()
2245+
db3 = db2.fork()
22462246
assert db3.is_mutable()
22472247

22482248
# Create a new immutable bag by freezing the bag
@@ -3147,7 +3147,7 @@ e2.x # 4
31473147
o = db.new(x=1, y=2)
31483148
o1 = o.fork_bag()
31493149
o1.x = 'a'
3150-
o2 = o1.freeze() # o2 is immutable
3150+
o2 = o1.freeze_bag() # o2 is immutable
31513151

31523152
l = db.list([1, 2, 3])
31533153
l1 = l.fork_bag()

0 commit comments

Comments
 (0)